@webitel/api-services 26.12.22 → 26.12.24
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/__tests__/generatePermissionsApi.spec.ts +37 -0
- package/src/api/clients/_shared/generatePermissionsApi.ts +26 -1
- package/src/api/clients/emailProfiles/emailProfiles.ts +6 -19
- package/src/api/clients/importTemplates/importTemplates.ts +36 -21
- package/src/api/clients/index.ts +3 -1
- package/src/api/clients/logs/logs.ts +56 -94
- package/src/api/clients/objectClasses/objectClasses.ts +211 -0
- package/src/api/clients/queues/queues.ts +2 -2
- package/src/api/clients/ringtones/ringtones.ts +30 -0
- package/src/api/clients/roles/roles.ts +227 -0
- package/src/api/clients/schemaVariables/schemaVariables.ts +21 -17
- package/src/api/clients/storagePolicies/storagePolicies.ts +24 -36
- package/src/api/clients/triggers/triggerJobs.ts +22 -12
- package/src/api/clients/triggers/triggers.ts +12 -37
- package/src/api/clients/userSettings/userSettings.ts +21 -0
- package/src/enums/AccessMode/AccessMode.ts +8 -0
- package/src/enums/AccessRuleColumn/AccessRuleColumn.ts +11 -0
- package/src/enums/AccessRuleName/AccessRuleName.ts +10 -0
- package/src/enums/WebitelApplications/AdminSections.ts +45 -0
- package/src/enums/WebitelApplications/AuditorSections.ts +6 -0
- package/src/enums/WebitelApplications/CrmSections.ts +21 -0
- package/src/enums/WebitelApplications/SupervisorSections.ts +8 -0
- package/src/enums/WebitelApplications/WfmSections.ts +12 -0
- package/src/enums/WebitelApplications/WtApplication.ts +13 -0
- package/src/enums/index.ts +18 -0
- package/src/gen/_models/webitelKbTreeNode.ts +3 -0
- package/src/gen-wire/_models/webitelKbTreeNode.ts +3 -0
- package/src/gen-wire/access-store/access-store.msw.ts +491 -0
- package/src/gen-wire/agent-absence-service/agent-absence-service.msw.ts +985 -0
- package/src/gen-wire/agent-chat-service/agent-chat-service.msw.ts +986 -0
- package/src/gen-wire/agent-chat-tag-service/agent-chat-tag-service.msw.ts +76 -0
- package/src/gen-wire/agent-pause-cause-service/agent-pause-cause-service.msw.ts +1029 -0
- package/src/gen-wire/agent-service/agent-service.msw.ts +4444 -0
- package/src/gen-wire/agent-skill-service/agent-skill-service.msw.ts +1347 -0
- package/src/gen-wire/agent-team-service/agent-team-service.msw.ts +875 -0
- package/src/gen-wire/agent-working-conditions-service/agent-working-conditions-service.msw.ts +196 -0
- package/src/gen-wire/agent-working-schedule-service/agent-working-schedule-service.msw.ts +846 -0
- package/src/gen-wire/articles/articles.msw.ts +5132 -0
- package/src/gen-wire/articles/articles.zod.ts +10 -0
- package/src/gen-wire/attachments/attachments.msw.ts +387 -0
- package/src/gen-wire/audit-form-service/audit-form-service.msw.ts +3169 -0
- package/src/gen-wire/auth/auth.msw.ts +801 -0
- package/src/gen-wire/backend-profile-service/backend-profile-service.msw.ts +1131 -0
- package/src/gen-wire/bucket-service/bucket-service.msw.ts +330 -0
- package/src/gen-wire/calendar-service/calendar-service.msw.ts +1526 -0
- package/src/gen-wire/call-service/call-service.msw.ts +6221 -0
- package/src/gen-wire/case-articles/case-articles.msw.ts +656 -0
- package/src/gen-wire/case-comments/case-comments.msw.ts +1164 -0
- package/src/gen-wire/case-communications/case-communications.msw.ts +279 -0
- package/src/gen-wire/case-files/case-files.msw.ts +295 -0
- package/src/gen-wire/case-links/case-links.msw.ts +1002 -0
- package/src/gen-wire/case-timeline/case-timeline.msw.ts +1012 -0
- package/src/gen-wire/cases/cases.msw.ts +14299 -0
- package/src/gen-wire/cases-chat-catalog/cases-chat-catalog.msw.ts +992 -0
- package/src/gen-wire/catalogs/catalogs.msw.ts +4088 -0
- package/src/gen-wire/classes/classes.msw.ts +309 -0
- package/src/gen-wire/close-reason-groups/close-reason-groups.msw.ts +803 -0
- package/src/gen-wire/close-reasons/close-reasons.msw.ts +845 -0
- package/src/gen-wire/cognitive-profile-service/cognitive-profile-service.msw.ts +942 -0
- package/src/gen-wire/comments/comments.msw.ts +900 -0
- package/src/gen-wire/communication-type-service/communication-type-service.msw.ts +549 -0
- package/src/gen-wire/config-service/config-service.msw.ts +687 -0
- package/src/gen-wire/contact-groups/contact-groups.msw.ts +1494 -0
- package/src/gen-wire/contact-linking-service/contact-linking-service.msw.ts +96 -0
- package/src/gen-wire/contacts/contacts.msw.ts +12671 -0
- package/src/gen-wire/contacts-chat-catalog/contacts-chat-catalog.msw.ts +1571 -0
- package/src/gen-wire/customer/customer.msw.ts +1376 -0
- package/src/gen-wire/customers/customers.msw.ts +2279 -0
- package/src/gen-wire/devices/devices.msw.ts +2119 -0
- package/src/gen-wire/dictionaries/dictionaries.msw.ts +7852 -0
- package/src/gen-wire/domains/domains.msw.ts +218 -0
- package/src/gen-wire/dynamic-conditions/dynamic-conditions.msw.ts +1229 -0
- package/src/gen-wire/dynamic-groups/dynamic-groups.msw.ts +1685 -0
- package/src/gen-wire/email-profile-service/email-profile-service.msw.ts +1832 -0
- package/src/gen-wire/emails/emails.msw.ts +1627 -0
- package/src/gen-wire/embedding-models/embedding-models.msw.ts +1048 -0
- package/src/gen-wire/extensions/extensions.msw.ts +5062 -0
- package/src/gen-wire/feedback-service/feedback-service.msw.ts +149 -0
- package/src/gen-wire/file-policies-service/file-policies-service.msw.ts +1310 -0
- package/src/gen-wire/file-service/file-service.msw.ts +1442 -0
- package/src/gen-wire/file-transcript-service/file-transcript-service.msw.ts +290 -0
- package/src/gen-wire/forecast-calculation-service/forecast-calculation-service.msw.ts +837 -0
- package/src/gen-wire/ftsservice/ftsservice.msw.ts +90 -0
- package/src/gen-wire/groups/groups.msw.ts +5778 -0
- package/src/gen-wire/im-service-provider-v1-telegrambotservice/im-service-provider-v1-telegrambotservice.msw.ts +390 -0
- package/src/gen-wire/imclients/imclients.msw.ts +541 -0
- package/src/gen-wire/import-template-service/import-template-service.msw.ts +603 -0
- package/src/gen-wire/index.msw.ts +152 -0
- package/src/gen-wire/index.ts +1 -0
- package/src/gen-wire/knowledgebase-search/knowledgebase-search.msw.ts +94 -0
- package/src/gen-wire/labels/labels.msw.ts +784 -0
- package/src/gen-wire/languages/languages.msw.ts +1504 -0
- package/src/gen-wire/ldap/ldap.msw.ts +6443 -0
- package/src/gen-wire/list-service/list-service.msw.ts +1359 -0
- package/src/gen-wire/logger-service/logger-service.msw.ts +620 -0
- package/src/gen-wire/managers/managers.msw.ts +1508 -0
- package/src/gen-wire/media-file-service/media-file-service.msw.ts +429 -0
- package/src/gen-wire/meeting-service/meeting-service.msw.ts +179 -0
- package/src/gen-wire/member-service/member-service.msw.ts +5742 -0
- package/src/gen-wire/messages/messages.msw.ts +3663 -0
- package/src/gen-wire/oauth2-federation/oauth2-federation.msw.ts +1446 -0
- package/src/gen-wire/online-skills/online-skills.msw.ts +882 -0
- package/src/gen-wire/outbound-resource-group-service/outbound-resource-group-service.msw.ts +1417 -0
- package/src/gen-wire/outbound-resource-service/outbound-resource-service.msw.ts +2093 -0
- package/src/gen-wire/pause-template-service/pause-template-service.msw.ts +823 -0
- package/src/gen-wire/pdf-service/pdf-service.msw.ts +851 -0
- package/src/gen-wire/permissions/permissions.msw.ts +98 -0
- package/src/gen-wire/phones/phones.msw.ts +1627 -0
- package/src/gen-wire/photos/photos.msw.ts +1369 -0
- package/src/gen-wire/presence/presence.msw.ts +485 -0
- package/src/gen-wire/preset-query-service/preset-query-service.msw.ts +522 -0
- package/src/gen-wire/priorities/priorities.msw.ts +719 -0
- package/src/gen-wire/queue-bucket-service/queue-bucket-service.msw.ts +492 -0
- package/src/gen-wire/queue-hook-service/queue-hook-service.msw.ts +582 -0
- package/src/gen-wire/queue-resources-service/queue-resources-service.msw.ts +475 -0
- package/src/gen-wire/queue-service/queue-service.msw.ts +3759 -0
- package/src/gen-wire/queue-skill-service/queue-skill-service.msw.ts +672 -0
- package/src/gen-wire/quick-replies-service/quick-replies-service.msw.ts +1254 -0
- package/src/gen-wire/records/records.msw.ts +1847 -0
- package/src/gen-wire/region-service/region-service.msw.ts +528 -0
- package/src/gen-wire/related-cases/related-cases.msw.ts +1428 -0
- package/src/gen-wire/retrieval/retrieval.msw.ts +805 -0
- package/src/gen-wire/routing-chat-plan-service/routing-chat-plan-service.msw.ts +522 -0
- package/src/gen-wire/routing-outbound-call-service/routing-outbound-call-service.msw.ts +1057 -0
- package/src/gen-wire/routing-schema-service/routing-schema-service.msw.ts +1045 -0
- package/src/gen-wire/routing-variable-service/routing-variable-service.msw.ts +374 -0
- package/src/gen-wire/schema-variables-service/schema-variables-service.msw.ts +333 -0
- package/src/gen-wire/services/services.msw.ts +2921 -0
- package/src/gen-wire/shift-template-service/shift-template-service.msw.ts +727 -0
- package/src/gen-wire/skill-service/skill-service.msw.ts +1299 -0
- package/src/gen-wire/slaconditions/slaconditions.msw.ts +1087 -0
- package/src/gen-wire/slas/slas.msw.ts +1145 -0
- package/src/gen-wire/sources/sources.msw.ts +689 -0
- package/src/gen-wire/spaces/spaces.msw.ts +2456 -0
- package/src/gen-wire/status-conditions/status-conditions.msw.ts +897 -0
- package/src/gen-wire/statuses/statuses.msw.ts +791 -0
- package/src/gen-wire/system-setting-service/system-setting-service.msw.ts +343 -0
- package/src/gen-wire/tags/tags.msw.ts +133 -0
- package/src/gen-wire/team-chat-tag-service/team-chat-tag-service.msw.ts +214 -0
- package/src/gen-wire/team-hook-service/team-hook-service.msw.ts +552 -0
- package/src/gen-wire/team-trigger-service/team-trigger-service.msw.ts +669 -0
- package/src/gen-wire/timeline/timeline.msw.ts +1109 -0
- package/src/gen-wire/timezones/timezones.msw.ts +1523 -0
- package/src/gen-wire/trigger-service/trigger-service.msw.ts +1113 -0
- package/src/gen-wire/two-factor-authentication/two-factor-authentication.msw.ts +160 -0
- package/src/gen-wire/types/types.msw.ts +1696 -0
- package/src/gen-wire/user-access-tokens/user-access-tokens.msw.ts +1357 -0
- package/src/gen-wire/user-helper-service/user-helper-service.msw.ts +472 -0
- package/src/gen-wire/users/users.msw.ts +5595 -0
- package/src/gen-wire/variables/variables.msw.ts +1189 -0
- package/src/gen-wire/versions/versions.msw.ts +441 -0
- package/src/gen-wire/web-hook-service/web-hook-service.msw.ts +1128 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-account/webitel-im-api-gateway-v1-account.msw.ts +986 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-bots/webitel-im-api-gateway-v1-bots.msw.ts +253 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-contacts/webitel-im-api-gateway-v1-contacts.msw.ts +246 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-contactsettingsmanagement/webitel-im-api-gateway-v1-contactsettingsmanagement.msw.ts +148 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-message/webitel-im-api-gateway-v1-message.msw.ts +1289 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.msw.ts +7390 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.msw.ts +15159 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-threadpermission/webitel-im-api-gateway-v1-threadpermission.msw.ts +220 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.msw.ts +777 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-threadtagmanagement/webitel-im-api-gateway-v1-threadtagmanagement.msw.ts +315 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.msw.ts +7922 -0
- package/src/gen-wire/webitel-im-api-provider-v1-facebookservice/webitel-im-api-provider-v1-facebookservice.msw.ts +504 -0
- package/src/gen-wire/webitel-im-api-provider-v1-instagramservice/webitel-im-api-provider-v1-instagramservice.msw.ts +341 -0
- package/src/gen-wire/webitel-im-api-provider-v1-metaappservice/webitel-im-api-provider-v1-metaappservice.msw.ts +395 -0
- package/src/gen-wire/webitel-im-api-provider-v1-metaoauthservice/webitel-im-api-provider-v1-metaoauthservice.msw.ts +170 -0
- package/src/gen-wire/webitel-im-api-provider-v1-viberbmservice/webitel-im-api-provider-v1-viberbmservice.msw.ts +426 -0
- package/src/gen-wire/webitel-im-api-provider-v1-whatsappservice/webitel-im-api-provider-v1-whatsappservice.msw.ts +383 -0
- package/src/gen-wire/webitel-im-provider-v1-customservice/webitel-im-provider-v1-customservice.msw.ts +586 -0
- package/src/gen-wire/webitel-im-provider-v1-facebookservice/webitel-im-provider-v1-facebookservice.msw.ts +610 -0
- package/src/gen-wire/webitel-im-provider-v1-gateservice/webitel-im-provider-v1-gateservice.msw.ts +183 -0
- package/src/gen-wire/webitel-im-provider-v1-gatetemplateservice/webitel-im-provider-v1-gatetemplateservice.msw.ts +195 -0
- package/src/gen-wire/webitel-im-provider-v1-instagramservice/webitel-im-provider-v1-instagramservice.msw.ts +442 -0
- package/src/gen-wire/webitel-im-provider-v1-metaappservice/webitel-im-provider-v1-metaappservice.msw.ts +514 -0
- package/src/gen-wire/webitel-im-provider-v1-metaoauthservice/webitel-im-provider-v1-metaoauthservice.msw.ts +166 -0
- package/src/gen-wire/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.msw.ts +466 -0
- package/src/gen-wire/webitel-im-provider-v1-viberbmservice/webitel-im-provider-v1-viberbmservice.msw.ts +662 -0
- package/src/gen-wire/webitel-im-provider-v1-viberservice/webitel-im-provider-v1-viberservice.msw.ts +550 -0
- package/src/gen-wire/webitel-im-provider-v1-whatsappservice/webitel-im-provider-v1-whatsappservice.msw.ts +573 -0
- package/src/gen-wire/working-condition-service/working-condition-service.msw.ts +925 -0
- package/src/gen-wire/working-schedule-service/working-schedule-service.msw.ts +1450 -0
- package/src/scripts/applicationsAccess/ApplicationsAccess.ts +372 -0
- package/src/scripts/applicationsAccess/__tests__/ApplicationsAccess.spec.ts +43 -0
- package/src/scripts/convertDuration/__tests__/convertDurationWithMilliseconds.spec.ts +19 -0
- package/src/scripts/convertDuration/convertDurationWithMilliseconds.ts +18 -0
- package/src/scripts/index.ts +12 -0
- package/src/scripts/resolveGrants/resolveGrants.ts +42 -0
- package/src/validations/changelog/__tests__/changelog.validations.spec.ts +41 -0
- package/src/validations/changelog/changelog.validations.ts +22 -0
- package/src/validations/emailProfile/__tests__/emailProfile.validations.spec.ts +105 -0
- package/src/validations/emailProfile/emailProfile.validations.ts +113 -0
- package/src/validations/importTemplate/__tests__/importTemplate.validations.spec.ts +77 -0
- package/src/validations/importTemplate/importTemplate.validations.ts +56 -0
- package/src/validations/index.ts +7 -0
- package/src/validations/role/__tests__/role.validations.spec.ts +53 -0
- package/src/validations/role/role.validations.ts +42 -0
- package/src/validations/schemaVariable/__tests__/schemaVariable.validations.spec.ts +50 -0
- package/src/validations/schemaVariable/schemaVariable.validations.ts +35 -0
- package/src/validations/storagePolicy/__tests__/storagePolicy.validations.spec.ts +52 -0
- package/src/validations/storagePolicy/storagePolicy.validations.ts +36 -0
- package/src/validations/trigger/__tests__/trigger.validations.spec.ts +92 -0
- package/src/validations/trigger/trigger.validations.ts +82 -0
- package/types/.tsbuildinfo +1 -1
- package/types/api/clients/_shared/generatePermissionsApi.d.ts +31 -0
- package/types/api/clients/importTemplates/importTemplates.d.ts +2 -2
- package/types/api/clients/index.d.ts +3 -0
- package/types/api/clients/logs/logs.d.ts +2 -2
- package/types/api/clients/objectClasses/objectClasses.d.ts +27 -0
- package/types/api/clients/ringtones/ringtones.d.ts +8 -0
- package/types/api/clients/roles/roles.d.ts +19 -0
- package/types/api/clients/userSettings/userSettings.d.ts +5 -0
- package/types/enums/AccessMode/AccessMode.d.ts +7 -0
- package/types/enums/AccessRuleColumn/AccessRuleColumn.d.ts +8 -0
- package/types/enums/AccessRuleName/AccessRuleName.d.ts +8 -0
- package/types/enums/WebitelApplications/AdminSections.d.ts +44 -0
- package/types/enums/WebitelApplications/AuditorSections.d.ts +4 -0
- package/types/enums/WebitelApplications/CrmSections.d.ts +16 -0
- package/types/enums/WebitelApplications/SupervisorSections.d.ts +6 -0
- package/types/enums/WebitelApplications/WfmSections.d.ts +9 -0
- package/types/enums/WebitelApplications/WtApplication.d.ts +12 -0
- package/types/enums/index.d.ts +10 -1
- package/types/gen/_models/webitelKbTreeNode.d.ts +3 -0
- package/types/gen-wire/_models/webitelKbTreeNode.d.ts +3 -0
- package/types/gen-wire/access-store/access-store.msw.d.ts +12 -0
- package/types/gen-wire/agent-absence-service/agent-absence-service.msw.d.ts +18 -0
- package/types/gen-wire/agent-chat-service/agent-chat-service.msw.d.ts +10 -0
- package/types/gen-wire/agent-chat-tag-service/agent-chat-tag-service.msw.d.ts +6 -0
- package/types/gen-wire/agent-pause-cause-service/agent-pause-cause-service.msw.d.ts +16 -0
- package/types/gen-wire/agent-service/agent-service.msw.d.ts +44 -0
- package/types/gen-wire/agent-skill-service/agent-skill-service.msw.d.ts +24 -0
- package/types/gen-wire/agent-team-service/agent-team-service.msw.d.ts +14 -0
- package/types/gen-wire/agent-working-conditions-service/agent-working-conditions-service.msw.d.ts +8 -0
- package/types/gen-wire/agent-working-schedule-service/agent-working-schedule-service.msw.d.ts +8 -0
- package/types/gen-wire/articles/articles.msw.d.ts +44 -0
- package/types/gen-wire/articles/articles.zod.d.ts +7 -0
- package/types/gen-wire/attachments/attachments.msw.d.ts +10 -0
- package/types/gen-wire/audit-form-service/audit-form-service.msw.d.ts +26 -0
- package/types/gen-wire/auth/auth.msw.d.ts +10 -0
- package/types/gen-wire/backend-profile-service/backend-profile-service.msw.d.ts +16 -0
- package/types/gen-wire/bucket-service/bucket-service.msw.d.ts +14 -0
- package/types/gen-wire/calendar-service/calendar-service.msw.d.ts +16 -0
- package/types/gen-wire/call-service/call-service.msw.d.ts +44 -0
- package/types/gen-wire/case-articles/case-articles.msw.d.ts +12 -0
- package/types/gen-wire/case-comments/case-comments.msw.d.ts +16 -0
- package/types/gen-wire/case-communications/case-communications.msw.d.ts +10 -0
- package/types/gen-wire/case-files/case-files.msw.d.ts +8 -0
- package/types/gen-wire/case-links/case-links.msw.d.ts +16 -0
- package/types/gen-wire/case-timeline/case-timeline.msw.d.ts +10 -0
- package/types/gen-wire/cases/cases.msw.d.ts +22 -0
- package/types/gen-wire/cases-chat-catalog/cases-chat-catalog.msw.d.ts +6 -0
- package/types/gen-wire/catalogs/catalogs.msw.d.ts +16 -0
- package/types/gen-wire/classes/classes.msw.d.ts +12 -0
- package/types/gen-wire/close-reason-groups/close-reason-groups.msw.d.ts +16 -0
- package/types/gen-wire/close-reasons/close-reasons.msw.d.ts +16 -0
- package/types/gen-wire/cognitive-profile-service/cognitive-profile-service.msw.d.ts +18 -0
- package/types/gen-wire/comments/comments.msw.d.ts +12 -0
- package/types/gen-wire/communication-type-service/communication-type-service.msw.d.ts +16 -0
- package/types/gen-wire/config-service/config-service.msw.d.ts +18 -0
- package/types/gen-wire/config-service/config-service.zod.d.ts +4 -4
- package/types/gen-wire/contact-groups/contact-groups.msw.d.ts +20 -0
- package/types/gen-wire/contact-linking-service/contact-linking-service.msw.d.ts +8 -0
- package/types/gen-wire/contacts/contacts.msw.d.ts +16 -0
- package/types/gen-wire/contacts-chat-catalog/contacts-chat-catalog.msw.d.ts +8 -0
- package/types/gen-wire/customer/customer.msw.d.ts +12 -0
- package/types/gen-wire/customers/customers.msw.d.ts +18 -0
- package/types/gen-wire/devices/devices.msw.d.ts +20 -0
- package/types/gen-wire/dictionaries/dictionaries.msw.d.ts +32 -0
- package/types/gen-wire/domains/domains.msw.d.ts +8 -0
- package/types/gen-wire/dynamic-conditions/dynamic-conditions.msw.d.ts +16 -0
- package/types/gen-wire/dynamic-groups/dynamic-groups.msw.d.ts +16 -0
- package/types/gen-wire/email-profile-service/email-profile-service.msw.d.ts +20 -0
- package/types/gen-wire/emails/emails.msw.d.ts +20 -0
- package/types/gen-wire/embedding-models/embedding-models.msw.d.ts +18 -0
- package/types/gen-wire/extensions/extensions.msw.d.ts +16 -0
- package/types/gen-wire/feedback-service/feedback-service.msw.d.ts +8 -0
- package/types/gen-wire/file-policies-service/file-policies-service.msw.d.ts +22 -0
- package/types/gen-wire/file-service/file-service.msw.d.ts +26 -0
- package/types/gen-wire/file-transcript-service/file-transcript-service.msw.d.ts +12 -0
- package/types/gen-wire/forecast-calculation-service/forecast-calculation-service.msw.d.ts +16 -0
- package/types/gen-wire/ftsservice/ftsservice.msw.d.ts +6 -0
- package/types/gen-wire/groups/groups.msw.d.ts +20 -0
- package/types/gen-wire/im-service-provider-v1-telegrambotservice/im-service-provider-v1-telegrambotservice.msw.d.ts +12 -0
- package/types/gen-wire/imclients/imclients.msw.d.ts +10 -0
- package/types/gen-wire/import-template-service/import-template-service.msw.d.ts +16 -0
- package/types/gen-wire/index.d.ts +1 -1
- package/types/gen-wire/index.msw.d.ts +152 -0
- package/types/gen-wire/knowledgebase-search/knowledgebase-search.msw.d.ts +6 -0
- package/types/gen-wire/labels/labels.msw.d.ts +14 -0
- package/types/gen-wire/languages/languages.msw.d.ts +18 -0
- package/types/gen-wire/ldap/ldap.msw.d.ts +46 -0
- package/types/gen-wire/list-service/list-service.msw.d.ts +26 -0
- package/types/gen-wire/logger-service/logger-service.msw.d.ts +12 -0
- package/types/gen-wire/logger-service/logger-service.zod.d.ts +4 -4
- package/types/gen-wire/managers/managers.msw.d.ts +20 -0
- package/types/gen-wire/media-file-service/media-file-service.msw.d.ts +10 -0
- package/types/gen-wire/meeting-service/meeting-service.msw.d.ts +10 -0
- package/types/gen-wire/member-service/member-service.msw.d.ts +54 -0
- package/types/gen-wire/messages/messages.msw.d.ts +16 -0
- package/types/gen-wire/oauth2-federation/oauth2-federation.msw.d.ts +18 -0
- package/types/gen-wire/online-skills/online-skills.msw.d.ts +16 -0
- package/types/gen-wire/outbound-resource-group-service/outbound-resource-group-service.msw.d.ts +24 -0
- package/types/gen-wire/outbound-resource-service/outbound-resource-service.msw.d.ts +30 -0
- package/types/gen-wire/pause-template-service/pause-template-service.msw.d.ts +14 -0
- package/types/gen-wire/pdf-service/pdf-service.msw.d.ts +22 -0
- package/types/gen-wire/permissions/permissions.msw.d.ts +6 -0
- package/types/gen-wire/phones/phones.msw.d.ts +20 -0
- package/types/gen-wire/photos/photos.msw.d.ts +20 -0
- package/types/gen-wire/presence/presence.msw.d.ts +8 -0
- package/types/gen-wire/preset-query-service/preset-query-service.msw.d.ts +16 -0
- package/types/gen-wire/priorities/priorities.msw.d.ts +16 -0
- package/types/gen-wire/queue-bucket-service/queue-bucket-service.msw.d.ts +16 -0
- package/types/gen-wire/queue-hook-service/queue-hook-service.msw.d.ts +16 -0
- package/types/gen-wire/queue-resources-service/queue-resources-service.msw.d.ts +14 -0
- package/types/gen-wire/queue-service/queue-service.msw.d.ts +24 -0
- package/types/gen-wire/queue-skill-service/queue-skill-service.msw.d.ts +16 -0
- package/types/gen-wire/quick-replies-service/quick-replies-service.msw.d.ts +16 -0
- package/types/gen-wire/records/records.msw.d.ts +16 -0
- package/types/gen-wire/region-service/region-service.msw.d.ts +16 -0
- package/types/gen-wire/related-cases/related-cases.msw.d.ts +16 -0
- package/types/gen-wire/retrieval/retrieval.msw.d.ts +14 -0
- package/types/gen-wire/routing-chat-plan-service/routing-chat-plan-service.msw.d.ts +16 -0
- package/types/gen-wire/routing-outbound-call-service/routing-outbound-call-service.msw.d.ts +18 -0
- package/types/gen-wire/routing-schema-service/routing-schema-service.msw.d.ts +18 -0
- package/types/gen-wire/routing-variable-service/routing-variable-service.msw.d.ts +14 -0
- package/types/gen-wire/schema-variables-service/schema-variables-service.msw.d.ts +16 -0
- package/types/gen-wire/services/services.msw.d.ts +16 -0
- package/types/gen-wire/shift-template-service/shift-template-service.msw.d.ts +14 -0
- package/types/gen-wire/skill-service/skill-service.msw.d.ts +22 -0
- package/types/gen-wire/slaconditions/slaconditions.msw.d.ts +16 -0
- package/types/gen-wire/slas/slas.msw.d.ts +16 -0
- package/types/gen-wire/sources/sources.msw.d.ts +16 -0
- package/types/gen-wire/spaces/spaces.msw.d.ts +26 -0
- package/types/gen-wire/status-conditions/status-conditions.msw.d.ts +16 -0
- package/types/gen-wire/statuses/statuses.msw.d.ts +16 -0
- package/types/gen-wire/system-setting-service/system-setting-service.msw.d.ts +18 -0
- package/types/gen-wire/tags/tags.msw.d.ts +8 -0
- package/types/gen-wire/team-chat-tag-service/team-chat-tag-service.msw.d.ts +12 -0
- package/types/gen-wire/team-hook-service/team-hook-service.msw.d.ts +16 -0
- package/types/gen-wire/team-trigger-service/team-trigger-service.msw.d.ts +20 -0
- package/types/gen-wire/timeline/timeline.msw.d.ts +10 -0
- package/types/gen-wire/timezones/timezones.msw.d.ts +20 -0
- package/types/gen-wire/trigger-service/trigger-service.msw.d.ts +20 -0
- package/types/gen-wire/two-factor-authentication/two-factor-authentication.msw.d.ts +8 -0
- package/types/gen-wire/types/types.msw.d.ts +8 -0
- package/types/gen-wire/user-access-tokens/user-access-tokens.msw.d.ts +16 -0
- package/types/gen-wire/user-helper-service/user-helper-service.msw.d.ts +10 -0
- package/types/gen-wire/users/users.msw.d.ts +34 -0
- package/types/gen-wire/variables/variables.msw.d.ts +18 -0
- package/types/gen-wire/versions/versions.msw.d.ts +10 -0
- package/types/gen-wire/web-hook-service/web-hook-service.msw.d.ts +16 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-account/webitel-im-api-gateway-v1-account.msw.d.ts +14 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-bots/webitel-im-api-gateway-v1-bots.msw.d.ts +10 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-contacts/webitel-im-api-gateway-v1-contacts.msw.d.ts +6 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-contactsettingsmanagement/webitel-im-api-gateway-v1-contactsettingsmanagement.msw.d.ts +8 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-message/webitel-im-api-gateway-v1-message.msw.d.ts +32 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.msw.d.ts +12 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.msw.d.ts +36 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-threadpermission/webitel-im-api-gateway-v1-threadpermission.msw.d.ts +8 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.msw.d.ts +10 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-threadtagmanagement/webitel-im-api-gateway-v1-threadtagmanagement.msw.d.ts +16 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.msw.d.ts +6 -0
- package/types/gen-wire/webitel-im-api-provider-v1-facebookservice/webitel-im-api-provider-v1-facebookservice.msw.d.ts +18 -0
- package/types/gen-wire/webitel-im-api-provider-v1-instagramservice/webitel-im-api-provider-v1-instagramservice.msw.d.ts +10 -0
- package/types/gen-wire/webitel-im-api-provider-v1-metaappservice/webitel-im-api-provider-v1-metaappservice.msw.d.ts +10 -0
- package/types/gen-wire/webitel-im-api-provider-v1-metaoauthservice/webitel-im-api-provider-v1-metaoauthservice.msw.d.ts +8 -0
- package/types/gen-wire/webitel-im-api-provider-v1-viberbmservice/webitel-im-api-provider-v1-viberbmservice.msw.d.ts +12 -0
- package/types/gen-wire/webitel-im-api-provider-v1-whatsappservice/webitel-im-api-provider-v1-whatsappservice.msw.d.ts +10 -0
- package/types/gen-wire/webitel-im-provider-v1-customservice/webitel-im-provider-v1-customservice.msw.d.ts +12 -0
- package/types/gen-wire/webitel-im-provider-v1-facebookservice/webitel-im-provider-v1-facebookservice.msw.d.ts +20 -0
- package/types/gen-wire/webitel-im-provider-v1-gateservice/webitel-im-provider-v1-gateservice.msw.d.ts +6 -0
- package/types/gen-wire/webitel-im-provider-v1-gatetemplateservice/webitel-im-provider-v1-gatetemplateservice.msw.d.ts +10 -0
- package/types/gen-wire/webitel-im-provider-v1-instagramservice/webitel-im-provider-v1-instagramservice.msw.d.ts +12 -0
- package/types/gen-wire/webitel-im-provider-v1-metaappservice/webitel-im-provider-v1-metaappservice.msw.d.ts +12 -0
- package/types/gen-wire/webitel-im-provider-v1-metaoauthservice/webitel-im-provider-v1-metaoauthservice.msw.d.ts +8 -0
- package/types/gen-wire/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.msw.d.ts +22 -0
- package/types/gen-wire/webitel-im-provider-v1-viberbmservice/webitel-im-provider-v1-viberbmservice.msw.d.ts +16 -0
- package/types/gen-wire/webitel-im-provider-v1-viberservice/webitel-im-provider-v1-viberservice.msw.d.ts +12 -0
- package/types/gen-wire/webitel-im-provider-v1-whatsappservice/webitel-im-provider-v1-whatsappservice.msw.d.ts +12 -0
- package/types/gen-wire/working-condition-service/working-condition-service.msw.d.ts +14 -0
- package/types/gen-wire/working-schedule-service/working-schedule-service.msw.d.ts +20 -0
- package/types/scripts/applicationsAccess/ApplicationsAccess.d.ts +45 -0
- package/types/scripts/convertDuration/convertDurationWithMilliseconds.d.ts +6 -0
- package/types/scripts/index.d.ts +6 -1
- package/types/scripts/resolveGrants/resolveGrants.d.ts +11 -0
- package/types/validations/changelog/changelog.validations.d.ts +15 -0
- package/types/validations/emailProfile/emailProfile.validations.d.ts +36 -0
- package/types/validations/importTemplate/importTemplate.validations.d.ts +62 -0
- package/types/validations/index.d.ts +7 -0
- package/types/validations/role/role.validations.d.ts +34 -0
- package/types/validations/schemaVariable/schemaVariable.validations.d.ts +18 -0
- package/types/validations/storagePolicy/storagePolicy.validations.d.ts +26 -0
- package/types/validations/trigger/trigger.validations.d.ts +38 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [Claude] A duration given in milliseconds, as `HH:MM:SS.mmm`. A missing or
|
|
3
|
+
* invalid one (e.g. a run that has not stopped yet) shows as zero.
|
|
4
|
+
*/
|
|
5
|
+
declare const convertDurationWithMilliseconds: (duration?: number) => string;
|
|
6
|
+
export default convertDurationWithMilliseconds;
|
package/types/scripts/index.d.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { ApplicationsAccess, type ApplicationsAccessSchema, type ApplicationsAccessTree } from './applicationsAccess/ApplicationsAccess';
|
|
1
2
|
import convertDuration from './convertDuration/convertDuration';
|
|
3
|
+
import convertDurationWithMilliseconds from './convertDuration/convertDurationWithMilliseconds';
|
|
2
4
|
import { minToSec, secToMin } from './convertTimeUnits/convertTimeUnits';
|
|
3
5
|
import downloadFile from './downloadFile/downloadFile';
|
|
4
6
|
import { FileFormat } from './downloadFile/types/fileFormat.types';
|
|
5
7
|
import { isRelativeDatetimeValue, normalizeDatetimeRange, normalizeToTimestamp } from './normalizeDatetime/normalizeDatetime';
|
|
8
|
+
import { resolveGrants } from './resolveGrants/resolveGrants';
|
|
6
9
|
export type { DatetimeRangeValue, NormalizeDatetimeOptions, NormalizeDatetimeValueParam, RelativeDatetimeRoundOption, } from './normalizeDatetime/normalizeDatetime';
|
|
7
|
-
export {
|
|
10
|
+
export type { ResolveGrantsParams } from './resolveGrants/resolveGrants';
|
|
11
|
+
export type { ApplicationsAccessSchema, ApplicationsAccessTree };
|
|
12
|
+
export { ApplicationsAccess, convertDuration, convertDurationWithMilliseconds, downloadFile, FileFormat, isRelativeDatetimeValue, minToSec, normalizeDatetimeRange, normalizeToTimestamp, resolveGrants, secToMin, };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface ResolveGrantsParams {
|
|
2
|
+
/** [Claude] what the row has for this rule now */
|
|
3
|
+
have: {
|
|
4
|
+
rule: string;
|
|
5
|
+
};
|
|
6
|
+
ruleName: string;
|
|
7
|
+
mode: {
|
|
8
|
+
id: number;
|
|
9
|
+
} | number;
|
|
10
|
+
}
|
|
11
|
+
export declare const resolveGrants: ({ have, ruleName, mode, }: ResolveGrantsParams) => string | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { LoggerConfig } from '@webitel/api-services/gen/models';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export type ChangelogCard = LoggerConfig;
|
|
4
|
+
/** [Claude] Changelog card schema: which object is logged, where the logs go and for how long. */
|
|
5
|
+
export declare const changelogSchema: z.ZodObject<{
|
|
6
|
+
daysToStore?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
7
|
+
description?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
8
|
+
enabled?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
9
|
+
id?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
10
|
+
logsCount?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
11
|
+
logsSize?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
12
|
+
object?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
13
|
+
period?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
14
|
+
storage?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
15
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** [Claude] the highest tcp port, the limit of the imap and smtp port fields */
|
|
3
|
+
export declare const EMAIL_PROFILE_MAX_PORT = 65535;
|
|
4
|
+
/**
|
|
5
|
+
* [Claude] Email profile card schema.
|
|
6
|
+
*
|
|
7
|
+
* Plain auth signs in with a password, oauth2 with the app's client settings.
|
|
8
|
+
* The password is required only when creating: an empty one on update means
|
|
9
|
+
* "keep the current one".
|
|
10
|
+
*/
|
|
11
|
+
export declare const emailProfileSchema: z.ZodObject<{
|
|
12
|
+
activityAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
13
|
+
authType?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
14
|
+
createdAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
15
|
+
createdBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
16
|
+
description?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
17
|
+
enabled?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
18
|
+
fetchError?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
19
|
+
fetchInterval?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
20
|
+
id?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
21
|
+
imapHost?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
22
|
+
imapPort?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
23
|
+
listen?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
24
|
+
logged?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
25
|
+
login?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
26
|
+
mailbox?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
27
|
+
name?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
28
|
+
params?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
29
|
+
password?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
30
|
+
schema?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
31
|
+
smtpHost?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
32
|
+
smtpPort?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
33
|
+
state?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
34
|
+
updatedAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
35
|
+
updatedBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
36
|
+
}, z.core.$loose>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { type StorageImportTemplate } from '@webitel/api-services/gen/models';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
declare const importTemplateParametersSchema: z.ZodObject<{
|
|
4
|
+
charset: z.ZodDefault<z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
value: z.ZodString;
|
|
7
|
+
}, z.core.$strip>>;
|
|
8
|
+
separator: z.ZodDefault<z.ZodString>;
|
|
9
|
+
skipHeaders: z.ZodDefault<z.ZodBoolean>;
|
|
10
|
+
clearMembers: z.ZodDefault<z.ZodBoolean>;
|
|
11
|
+
mappings: z.ZodPrefault<z.ZodObject<{
|
|
12
|
+
name: z.ZodDefault<z.ZodString>;
|
|
13
|
+
timezoneId: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
14
|
+
priority: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
15
|
+
expireAt: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
16
|
+
bucketId: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
17
|
+
agentId: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
18
|
+
variables: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
19
|
+
destination: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
20
|
+
commPriority: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
21
|
+
code: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
22
|
+
description: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
23
|
+
dtmf: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
export type ImportTemplateCard = Omit<StorageImportTemplate, 'parameters'> & {
|
|
27
|
+
parameters?: z.infer<typeof importTemplateParametersSchema>;
|
|
28
|
+
};
|
|
29
|
+
export declare const importTemplateSchema: z.ZodObject<{
|
|
30
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
name: z.ZodDefault<z.ZodString>;
|
|
32
|
+
description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
33
|
+
source: z.ZodPrefault<z.ZodObject<{
|
|
34
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
35
|
+
name: z.ZodOptional<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
sourceType: z.ZodDefault<z.ZodString>;
|
|
38
|
+
parameters: z.ZodPrefault<z.ZodObject<{
|
|
39
|
+
charset: z.ZodDefault<z.ZodObject<{
|
|
40
|
+
name: z.ZodString;
|
|
41
|
+
value: z.ZodString;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
separator: z.ZodDefault<z.ZodString>;
|
|
44
|
+
skipHeaders: z.ZodDefault<z.ZodBoolean>;
|
|
45
|
+
clearMembers: z.ZodDefault<z.ZodBoolean>;
|
|
46
|
+
mappings: z.ZodPrefault<z.ZodObject<{
|
|
47
|
+
name: z.ZodDefault<z.ZodString>;
|
|
48
|
+
timezoneId: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
49
|
+
priority: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
50
|
+
expireAt: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
51
|
+
bucketId: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
52
|
+
agentId: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
53
|
+
variables: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
54
|
+
destination: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
55
|
+
commPriority: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
56
|
+
code: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
57
|
+
description: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
58
|
+
dtmf: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
export {};
|
|
@@ -29,6 +29,7 @@ export * from './caseServiceCatalog/caseServiceCatalog.validations';
|
|
|
29
29
|
export * from './caseSource/caseSource.validations';
|
|
30
30
|
export * from './caseStatus/caseStatus.validations';
|
|
31
31
|
export * from './caseStatusCondition/caseStatusCondition.validations';
|
|
32
|
+
export * from './changelog/changelog.validations';
|
|
32
33
|
export * from './chatGateway/chatGateway.validations';
|
|
33
34
|
export * from './chatplan/chatplan.validations';
|
|
34
35
|
export * from './cognitiveProfile/cognitiveProfile.validations';
|
|
@@ -40,8 +41,10 @@ export * from './contactGroupCondition/contactGroupCondition.validations';
|
|
|
40
41
|
export * from './contactPhone/contactPhone.validations';
|
|
41
42
|
export * from './device/device.validations';
|
|
42
43
|
export * from './dialplan/dialplan.validations';
|
|
44
|
+
export * from './emailProfile/emailProfile.validations';
|
|
43
45
|
export * from './flow/flow.validations';
|
|
44
46
|
export * from './gateway/gateway.validations';
|
|
47
|
+
export * from './importTemplate/importTemplate.validations';
|
|
45
48
|
export * from './license/licenseImport.validations';
|
|
46
49
|
export * from './OAuth/OAuth.validations';
|
|
47
50
|
export * from './onlineSkill/onlineSkill.validations';
|
|
@@ -63,15 +66,19 @@ export * from './resource/resource.validations';
|
|
|
63
66
|
export * from './resourceDisplay/resourceDisplay.validations';
|
|
64
67
|
export * from './resourceGroup/resourceGroup.validations';
|
|
65
68
|
export * from './resourceInGroup/resourceInGroup.validations';
|
|
69
|
+
export * from './role/role.validations';
|
|
70
|
+
export * from './schemaVariable/schemaVariable.validations';
|
|
66
71
|
export * from './shiftTemplate/shiftTemplate.validations';
|
|
67
72
|
export * from './skill/skill.validations';
|
|
68
73
|
export * from './sla/sla.validations';
|
|
69
74
|
export * from './slaCondition/slaCondition.validations';
|
|
75
|
+
export * from './storagePolicy/storagePolicy.validations';
|
|
70
76
|
export * from './team/team.validations';
|
|
71
77
|
export * from './teamAgent/teamAgent.validations';
|
|
72
78
|
export * from './teamFlow/teamFlow.validations';
|
|
73
79
|
export * from './teamHook/teamHook.validations';
|
|
74
80
|
export * from './textToSpeech/textToSpeech.validations';
|
|
81
|
+
export * from './trigger/trigger.validations';
|
|
75
82
|
export * from './typeExtension/typeExtension.validations';
|
|
76
83
|
export * from './types';
|
|
77
84
|
export * from './user/user.validations';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** [Claude] a global action granted to the role, e.g. `playback_record_file` */
|
|
3
|
+
declare const rolePermissionSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$loose>;
|
|
7
|
+
/**
|
|
8
|
+
* [Claude] The role's access to each app and its sections, as the tree built
|
|
9
|
+
* by `ApplicationsAccess`; a new role starts with everything allowed.
|
|
10
|
+
*/
|
|
11
|
+
declare const roleMetadataSchema: z.ZodObject<{
|
|
12
|
+
access: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
|
+
}, z.core.$loose>;
|
|
14
|
+
export type RolePermission = z.infer<typeof rolePermissionSchema>;
|
|
15
|
+
export type RoleCard = {
|
|
16
|
+
id?: string | number;
|
|
17
|
+
name?: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
permissions?: RolePermission[];
|
|
20
|
+
metadata?: z.infer<typeof roleMetadataSchema>;
|
|
21
|
+
};
|
|
22
|
+
export declare const roleSchema: z.ZodObject<{
|
|
23
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
24
|
+
name: z.ZodDefault<z.ZodString>;
|
|
25
|
+
description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
26
|
+
permissions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
27
|
+
id: z.ZodString;
|
|
28
|
+
name: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, z.core.$loose>>>;
|
|
30
|
+
metadata: z.ZodPrefault<z.ZodObject<{
|
|
31
|
+
access: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
32
|
+
}, z.core.$loose>>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { EngineSchemaVariable } from '@webitel/api-services/gen/models';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
/** [Claude] the form edits `value` as text, the generated model leaves it untyped */
|
|
4
|
+
export type SchemaVariableCard = Omit<EngineSchemaVariable, 'value'> & {
|
|
5
|
+
value?: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* [Claude] Global variable card schema.
|
|
9
|
+
*
|
|
10
|
+
* An encrypted variable is never read back, so a saved one keeps its value
|
|
11
|
+
* when the field is left empty; a new or a plain one needs it.
|
|
12
|
+
*/
|
|
13
|
+
export declare const schemaVariableSchema: z.ZodObject<{
|
|
14
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
name: z.ZodDefault<z.ZodString>;
|
|
16
|
+
value: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
17
|
+
encrypt: z.ZodDefault<z.ZodBoolean>;
|
|
18
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { StorageFilePolicy } from '@webitel/api-services/gen/models';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
/** [Claude] the api keeps speeds and the upload size as int64 strings, the form edits them as numbers */
|
|
4
|
+
export type StoragePolicyCard = Omit<StorageFilePolicy, 'speedDownload' | 'speedUpload' | 'maxUploadSize'> & {
|
|
5
|
+
speedDownload?: string | number;
|
|
6
|
+
speedUpload?: string | number;
|
|
7
|
+
maxUploadSize?: string | number;
|
|
8
|
+
};
|
|
9
|
+
export declare const storagePolicySchema: z.ZodObject<{
|
|
10
|
+
channels?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
11
|
+
createdAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
12
|
+
createdBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
13
|
+
description?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
14
|
+
enabled?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
15
|
+
encrypt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
16
|
+
id?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
17
|
+
maxUploadSize?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
18
|
+
mimeTypes?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
19
|
+
name?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
20
|
+
position?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
21
|
+
retentionDays?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
22
|
+
speedDownload?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
23
|
+
speedUpload?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
24
|
+
updatedAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
25
|
+
updatedBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
26
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type EngineTrigger } from '@webitel/api-services/gen/models';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { type VariablePair } from '../_shared/variablePair.validations';
|
|
4
|
+
/** [Claude] the card's trigger: `variables` is the editable pair list, the api takes a map */
|
|
5
|
+
export type TriggerCard = Omit<EngineTrigger, 'variables'> & {
|
|
6
|
+
variables?: VariablePair[];
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* [Claude] Trigger card schema.
|
|
10
|
+
*
|
|
11
|
+
* A cron trigger runs on a schedule, so it needs the expression and its
|
|
12
|
+
* timezone; an event trigger runs on an object's event, so it needs both of
|
|
13
|
+
* those. Whether the expression is a valid cron is left to the app, which
|
|
14
|
+
* has the cron parser.
|
|
15
|
+
*/
|
|
16
|
+
export declare const triggerSchema: z.ZodObject<{
|
|
17
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
18
|
+
name: z.ZodDefault<z.ZodString>;
|
|
19
|
+
description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
20
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
21
|
+
type: z.ZodDefault<z.ZodString>;
|
|
22
|
+
schema: z.ZodPrefault<z.ZodObject<{
|
|
23
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
24
|
+
name: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
timeout: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
27
|
+
variables: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
28
|
+
key: z.ZodString;
|
|
29
|
+
value: z.ZodString;
|
|
30
|
+
}, z.core.$strip>>>;
|
|
31
|
+
expression: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
32
|
+
timezone: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
33
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
34
|
+
name: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>>;
|
|
36
|
+
object: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
37
|
+
event: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
38
|
+
}, z.core.$loose>;
|