@opens/gateways 1.15.14 → 1.15.16

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.
@@ -0,0 +1,12 @@
1
+ /** Call endpoint status returned by the Calls API. */
2
+ type CallEndpointStatus = 'offline' | 'online' | string;
3
+ /** Call endpoint entry returned by the Calls API. */
4
+ interface CallEndpoint {
5
+ endpoint: string;
6
+ status: CallEndpointStatus;
7
+ resource: string;
8
+ technology: string;
9
+ channel_ids: string[];
10
+ }
11
+
12
+ export type { CallEndpoint, CallEndpointStatus };
@@ -0,0 +1,12 @@
1
+ /** Call endpoint status returned by the Calls API. */
2
+ type CallEndpointStatus = 'offline' | 'online' | string;
3
+ /** Call endpoint entry returned by the Calls API. */
4
+ interface CallEndpoint {
5
+ endpoint: string;
6
+ status: CallEndpointStatus;
7
+ resource: string;
8
+ technology: string;
9
+ channel_ids: string[];
10
+ }
11
+
12
+ export type { CallEndpoint, CallEndpointStatus };
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/calls/contracts/index.ts
17
+ var contracts_exports = {};
18
+ module.exports = __toCommonJS(contracts_exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/calls/contracts/index.ts"],"sourcesContent":["export * from './endpoint';\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -20,6 +20,25 @@ interface CompanyData {
20
20
  interface CompanyResponse {
21
21
  company: CompanyData;
22
22
  }
23
+ /** Request payload for updating company settings. */
24
+ interface UpdateCompanyRequest {
25
+ check_bad_password?: boolean;
26
+ limit_bad_password?: number;
27
+ timezone?: string;
28
+ utc?: string;
29
+ }
30
+ /** Request payload for updating the company support widget identifier. */
31
+ interface UpdateSupportWidgetIdRequest {
32
+ support_widget_id: string;
33
+ }
34
+ /** Response returned by the Customer Service API when updating the support widget identifier. */
35
+ interface UpdateSupportWidgetIdResponse {
36
+ company: Pick<CompanyData, 'id' | 'support_widget_id'>;
37
+ }
38
+ /** Response returned by the Customer Service API when fetching the support widget identifier. */
39
+ interface GetSupportWidgetIdResponse {
40
+ support_widget_id: string;
41
+ }
23
42
 
24
43
  /** Strong password policy options stored in a company config `value_json`. */
25
44
  interface StrongPasswordOptions {
@@ -34,23 +53,106 @@ interface StrongPasswordOptions {
34
53
  /** Minimum password length. */
35
54
  minChars: number;
36
55
  }
37
- /** Response returned by the Customer Service API when fetching strong password options. */
38
- interface StrongPasswordOptionsResponse {
39
- /** Unique identifier of the company config entry. */
56
+ /** Request payload for updating a boolean company config. */
57
+ interface UpdateCompanyBooleanConfigRequest {
58
+ value: boolean;
59
+ }
60
+ /** Request payload for updating a string company config. */
61
+ interface UpdateCompanyStringConfigRequest {
62
+ value: string;
63
+ }
64
+ /** Known company config keys that accept a boolean value. */
65
+ type CompanyBooleanConfigKey = 'mandatory-tag' | 'prevent-tag-edit' | 'inbox-hide-message-enabled' | 'show-deleted-users';
66
+ /** Known company config keys that accept a string value. */
67
+ type CompanyStringConfigKey = 'proxy_ami' | 'snep_password';
68
+ /** Known company config keys for fetching a single config entry. */
69
+ type CompanyConfigKey = CompanyBooleanConfigKey | CompanyStringConfigKey | 'strong-password-options';
70
+ /** Response returned by the Customer Service API for a company config entry. */
71
+ interface CompanyConfigResponse {
40
72
  id: string;
41
- /** Config key, always `"strong-password-options"`. */
42
73
  key: string;
43
- /** String representation of whether the strong password policy is enabled. */
44
- value: string;
45
- /** Structured strong password policy rules. */
46
- value_json: StrongPasswordOptions;
47
- /** Creation timestamp in ISO 8601 format. */
74
+ value: boolean | string | null;
75
+ value_json: StrongPasswordOptions | null;
48
76
  createdAt: string;
49
- /** Last update timestamp in ISO 8601 format. */
50
77
  updatedAt: string;
51
- /** Unique identifier of the company that owns this config. */
52
78
  company_id: string;
53
79
  }
80
+ /** Response returned by the Customer Service API when fetching or updating strong password options. */
81
+ interface StrongPasswordOptionsResponse extends CompanyConfigResponse {
82
+ key: 'strong-password-options';
83
+ value_json: StrongPasswordOptions;
84
+ }
85
+ /** Response returned by the Customer Service API when fetching the current company with its configs. */
86
+ interface CompanyWithConfigsResponse extends CompanyData {
87
+ configs: CompanyConfigResponse[];
88
+ }
89
+
90
+ /** Queue entry returned by the Customer Service API when listing company queues. */
91
+ interface CompanyQueue {
92
+ name: string;
93
+ musiconhold: string;
94
+ announce: string;
95
+ context: string;
96
+ timeout: string;
97
+ ringinuse: string;
98
+ setinterfacevar: string | null;
99
+ setqueuevar: string | null;
100
+ setqueueentryvar: string | null;
101
+ monitor_format: string | null;
102
+ membermacro: string | null;
103
+ membergosub: string | null;
104
+ queue_youarenext: string;
105
+ queue_thereare: string;
106
+ queue_callswaiting: string;
107
+ queue_quantity1: string | null;
108
+ queue_quantity2: string | null;
109
+ queue_holdtime: string | null;
110
+ queue_minutes: string | null;
111
+ queue_minute: string | null;
112
+ queue_seconds: string | null;
113
+ queue_thankyou: string;
114
+ queue_callerannounce: string | null;
115
+ queue_reporthold: string | null;
116
+ announce_frequency: string;
117
+ announce_to_first_user: string | null;
118
+ min_announce_frequency: string | null;
119
+ announce_round_seconds: string | null;
120
+ announce_holdtime: string | null;
121
+ announce_position: string | null;
122
+ announce_position_limit: string | null;
123
+ periodic_announce: string | null;
124
+ periodic_announce_frequency: string | null;
125
+ relative_periodic_announce: string | null;
126
+ random_periodic_announce: string | null;
127
+ retry: string;
128
+ wrapuptime: string;
129
+ penaltymemberslimit: string | null;
130
+ autofill: string | null;
131
+ monitor_type: string | null;
132
+ autopause: string | null;
133
+ autopausedelay: string | null;
134
+ autopausebusy: string | null;
135
+ autopauseunavail: string | null;
136
+ maxlen: string;
137
+ servicelevel: string;
138
+ strategy: string;
139
+ joinempty: string;
140
+ leavewhenempty: string;
141
+ reportholdtime: string;
142
+ memberdelay: string;
143
+ weight: string;
144
+ timeoutrestart: string | null;
145
+ defaultrule: string | null;
146
+ timeoutpriority: string | null;
147
+ id: string;
148
+ alert_mail: string;
149
+ notify: string;
150
+ csat: string;
151
+ csat_survey_audio: string | null;
152
+ csat_thanks_audio: string | null;
153
+ announce_audio: string | null;
154
+ announce_audio_enabled: string;
155
+ }
54
156
 
55
157
  /** A work group entity nested within {@link WorkGroupListResponse} and {@link WorkGroupResponse}. */
56
158
  interface WorkGroup {
@@ -386,4 +488,4 @@ interface ValidateTwoFactorOtpResponse {
386
488
  validate: boolean;
387
489
  }
388
490
 
389
- export type { ActiveAnnouncement, ActiveAnnouncementQuery, Announcement, AnnouncementAppearance, AnnouncementButton, AnnouncementCompany, AnnouncementListFilters, AnnouncementListResponse, AnnouncementPayload, AnnouncementTargetingRuleUrl, AnnouncementTargetingRules, AnnouncementType, AnnouncementVisualStatus, CompanyData, CompanyResponse, CreateAnnouncementRequest, GenerateTwoFactorOtpRequest, GenerateTwoFactorOtpResponse, GetAllUsersParams, GetAllUsersResponse, GetManagedUsersResponse, GetUserByIdResponse, ManagedUser, StrongPasswordOptions, StrongPasswordOptionsResponse, UpdateAnnouncementRequest, UpdateAnnouncementStatusRequest, UpdateCompanyUserAvatarResponse, UpdateCompanyUserRequest, UpdateUserPasswordRequest, UpdateUserPasswordResponse, User, ValidateTwoFactorOtpRequest, ValidateTwoFactorOtpResponse, WorkGroup, WorkGroupListResponse, WorkGroupMember, WorkGroupMembersResponse, WorkGroupResponse };
491
+ export type { ActiveAnnouncement, ActiveAnnouncementQuery, Announcement, AnnouncementAppearance, AnnouncementButton, AnnouncementCompany, AnnouncementListFilters, AnnouncementListResponse, AnnouncementPayload, AnnouncementTargetingRuleUrl, AnnouncementTargetingRules, AnnouncementType, AnnouncementVisualStatus, CompanyBooleanConfigKey, CompanyConfigKey, CompanyConfigResponse, CompanyData, CompanyQueue, CompanyResponse, CompanyStringConfigKey, CompanyWithConfigsResponse, CreateAnnouncementRequest, GenerateTwoFactorOtpRequest, GenerateTwoFactorOtpResponse, GetAllUsersParams, GetAllUsersResponse, GetManagedUsersResponse, GetSupportWidgetIdResponse, GetUserByIdResponse, ManagedUser, StrongPasswordOptions, StrongPasswordOptionsResponse, UpdateAnnouncementRequest, UpdateAnnouncementStatusRequest, UpdateCompanyBooleanConfigRequest, UpdateCompanyRequest, UpdateCompanyStringConfigRequest, UpdateCompanyUserAvatarResponse, UpdateCompanyUserRequest, UpdateSupportWidgetIdRequest, UpdateSupportWidgetIdResponse, UpdateUserPasswordRequest, UpdateUserPasswordResponse, User, ValidateTwoFactorOtpRequest, ValidateTwoFactorOtpResponse, WorkGroup, WorkGroupListResponse, WorkGroupMember, WorkGroupMembersResponse, WorkGroupResponse };
@@ -20,6 +20,25 @@ interface CompanyData {
20
20
  interface CompanyResponse {
21
21
  company: CompanyData;
22
22
  }
23
+ /** Request payload for updating company settings. */
24
+ interface UpdateCompanyRequest {
25
+ check_bad_password?: boolean;
26
+ limit_bad_password?: number;
27
+ timezone?: string;
28
+ utc?: string;
29
+ }
30
+ /** Request payload for updating the company support widget identifier. */
31
+ interface UpdateSupportWidgetIdRequest {
32
+ support_widget_id: string;
33
+ }
34
+ /** Response returned by the Customer Service API when updating the support widget identifier. */
35
+ interface UpdateSupportWidgetIdResponse {
36
+ company: Pick<CompanyData, 'id' | 'support_widget_id'>;
37
+ }
38
+ /** Response returned by the Customer Service API when fetching the support widget identifier. */
39
+ interface GetSupportWidgetIdResponse {
40
+ support_widget_id: string;
41
+ }
23
42
 
24
43
  /** Strong password policy options stored in a company config `value_json`. */
25
44
  interface StrongPasswordOptions {
@@ -34,23 +53,106 @@ interface StrongPasswordOptions {
34
53
  /** Minimum password length. */
35
54
  minChars: number;
36
55
  }
37
- /** Response returned by the Customer Service API when fetching strong password options. */
38
- interface StrongPasswordOptionsResponse {
39
- /** Unique identifier of the company config entry. */
56
+ /** Request payload for updating a boolean company config. */
57
+ interface UpdateCompanyBooleanConfigRequest {
58
+ value: boolean;
59
+ }
60
+ /** Request payload for updating a string company config. */
61
+ interface UpdateCompanyStringConfigRequest {
62
+ value: string;
63
+ }
64
+ /** Known company config keys that accept a boolean value. */
65
+ type CompanyBooleanConfigKey = 'mandatory-tag' | 'prevent-tag-edit' | 'inbox-hide-message-enabled' | 'show-deleted-users';
66
+ /** Known company config keys that accept a string value. */
67
+ type CompanyStringConfigKey = 'proxy_ami' | 'snep_password';
68
+ /** Known company config keys for fetching a single config entry. */
69
+ type CompanyConfigKey = CompanyBooleanConfigKey | CompanyStringConfigKey | 'strong-password-options';
70
+ /** Response returned by the Customer Service API for a company config entry. */
71
+ interface CompanyConfigResponse {
40
72
  id: string;
41
- /** Config key, always `"strong-password-options"`. */
42
73
  key: string;
43
- /** String representation of whether the strong password policy is enabled. */
44
- value: string;
45
- /** Structured strong password policy rules. */
46
- value_json: StrongPasswordOptions;
47
- /** Creation timestamp in ISO 8601 format. */
74
+ value: boolean | string | null;
75
+ value_json: StrongPasswordOptions | null;
48
76
  createdAt: string;
49
- /** Last update timestamp in ISO 8601 format. */
50
77
  updatedAt: string;
51
- /** Unique identifier of the company that owns this config. */
52
78
  company_id: string;
53
79
  }
80
+ /** Response returned by the Customer Service API when fetching or updating strong password options. */
81
+ interface StrongPasswordOptionsResponse extends CompanyConfigResponse {
82
+ key: 'strong-password-options';
83
+ value_json: StrongPasswordOptions;
84
+ }
85
+ /** Response returned by the Customer Service API when fetching the current company with its configs. */
86
+ interface CompanyWithConfigsResponse extends CompanyData {
87
+ configs: CompanyConfigResponse[];
88
+ }
89
+
90
+ /** Queue entry returned by the Customer Service API when listing company queues. */
91
+ interface CompanyQueue {
92
+ name: string;
93
+ musiconhold: string;
94
+ announce: string;
95
+ context: string;
96
+ timeout: string;
97
+ ringinuse: string;
98
+ setinterfacevar: string | null;
99
+ setqueuevar: string | null;
100
+ setqueueentryvar: string | null;
101
+ monitor_format: string | null;
102
+ membermacro: string | null;
103
+ membergosub: string | null;
104
+ queue_youarenext: string;
105
+ queue_thereare: string;
106
+ queue_callswaiting: string;
107
+ queue_quantity1: string | null;
108
+ queue_quantity2: string | null;
109
+ queue_holdtime: string | null;
110
+ queue_minutes: string | null;
111
+ queue_minute: string | null;
112
+ queue_seconds: string | null;
113
+ queue_thankyou: string;
114
+ queue_callerannounce: string | null;
115
+ queue_reporthold: string | null;
116
+ announce_frequency: string;
117
+ announce_to_first_user: string | null;
118
+ min_announce_frequency: string | null;
119
+ announce_round_seconds: string | null;
120
+ announce_holdtime: string | null;
121
+ announce_position: string | null;
122
+ announce_position_limit: string | null;
123
+ periodic_announce: string | null;
124
+ periodic_announce_frequency: string | null;
125
+ relative_periodic_announce: string | null;
126
+ random_periodic_announce: string | null;
127
+ retry: string;
128
+ wrapuptime: string;
129
+ penaltymemberslimit: string | null;
130
+ autofill: string | null;
131
+ monitor_type: string | null;
132
+ autopause: string | null;
133
+ autopausedelay: string | null;
134
+ autopausebusy: string | null;
135
+ autopauseunavail: string | null;
136
+ maxlen: string;
137
+ servicelevel: string;
138
+ strategy: string;
139
+ joinempty: string;
140
+ leavewhenempty: string;
141
+ reportholdtime: string;
142
+ memberdelay: string;
143
+ weight: string;
144
+ timeoutrestart: string | null;
145
+ defaultrule: string | null;
146
+ timeoutpriority: string | null;
147
+ id: string;
148
+ alert_mail: string;
149
+ notify: string;
150
+ csat: string;
151
+ csat_survey_audio: string | null;
152
+ csat_thanks_audio: string | null;
153
+ announce_audio: string | null;
154
+ announce_audio_enabled: string;
155
+ }
54
156
 
55
157
  /** A work group entity nested within {@link WorkGroupListResponse} and {@link WorkGroupResponse}. */
56
158
  interface WorkGroup {
@@ -386,4 +488,4 @@ interface ValidateTwoFactorOtpResponse {
386
488
  validate: boolean;
387
489
  }
388
490
 
389
- export type { ActiveAnnouncement, ActiveAnnouncementQuery, Announcement, AnnouncementAppearance, AnnouncementButton, AnnouncementCompany, AnnouncementListFilters, AnnouncementListResponse, AnnouncementPayload, AnnouncementTargetingRuleUrl, AnnouncementTargetingRules, AnnouncementType, AnnouncementVisualStatus, CompanyData, CompanyResponse, CreateAnnouncementRequest, GenerateTwoFactorOtpRequest, GenerateTwoFactorOtpResponse, GetAllUsersParams, GetAllUsersResponse, GetManagedUsersResponse, GetUserByIdResponse, ManagedUser, StrongPasswordOptions, StrongPasswordOptionsResponse, UpdateAnnouncementRequest, UpdateAnnouncementStatusRequest, UpdateCompanyUserAvatarResponse, UpdateCompanyUserRequest, UpdateUserPasswordRequest, UpdateUserPasswordResponse, User, ValidateTwoFactorOtpRequest, ValidateTwoFactorOtpResponse, WorkGroup, WorkGroupListResponse, WorkGroupMember, WorkGroupMembersResponse, WorkGroupResponse };
491
+ export type { ActiveAnnouncement, ActiveAnnouncementQuery, Announcement, AnnouncementAppearance, AnnouncementButton, AnnouncementCompany, AnnouncementListFilters, AnnouncementListResponse, AnnouncementPayload, AnnouncementTargetingRuleUrl, AnnouncementTargetingRules, AnnouncementType, AnnouncementVisualStatus, CompanyBooleanConfigKey, CompanyConfigKey, CompanyConfigResponse, CompanyData, CompanyQueue, CompanyResponse, CompanyStringConfigKey, CompanyWithConfigsResponse, CreateAnnouncementRequest, GenerateTwoFactorOtpRequest, GenerateTwoFactorOtpResponse, GetAllUsersParams, GetAllUsersResponse, GetManagedUsersResponse, GetSupportWidgetIdResponse, GetUserByIdResponse, ManagedUser, StrongPasswordOptions, StrongPasswordOptionsResponse, UpdateAnnouncementRequest, UpdateAnnouncementStatusRequest, UpdateCompanyBooleanConfigRequest, UpdateCompanyRequest, UpdateCompanyStringConfigRequest, UpdateCompanyUserAvatarResponse, UpdateCompanyUserRequest, UpdateSupportWidgetIdRequest, UpdateSupportWidgetIdResponse, UpdateUserPasswordRequest, UpdateUserPasswordResponse, User, ValidateTwoFactorOtpRequest, ValidateTwoFactorOtpResponse, WorkGroup, WorkGroupListResponse, WorkGroupMember, WorkGroupMembersResponse, WorkGroupResponse };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/customer-service/contracts/index.ts"],"sourcesContent":["export * from './work-group';\nexport * from './company';\nexport * from './company-config';\nexport * from './user';\nexport * from './announcement';\nexport * from './authenticate';\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../../../src/customer-service/contracts/index.ts"],"sourcesContent":["export * from './work-group';\nexport * from './company';\nexport * from './company-config';\nexport * from './company-queue';\nexport * from './user';\nexport * from './announcement';\nexport * from './authenticate';\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { AxiosInstance } from 'axios';
2
- import { CompanyResponse, StrongPasswordOptionsResponse, User, WorkGroupListResponse, WorkGroupResponse, WorkGroupMembersResponse, GetAllUsersParams, GetAllUsersResponse, GetManagedUsersResponse, GetUserByIdResponse, UpdateCompanyUserRequest, UpdateUserPasswordRequest, UpdateUserPasswordResponse, UpdateCompanyUserAvatarResponse, GenerateTwoFactorOtpRequest, GenerateTwoFactorOtpResponse, ValidateTwoFactorOtpRequest, ValidateTwoFactorOtpResponse, AnnouncementListFilters, AnnouncementListResponse, Announcement, CreateAnnouncementRequest, UpdateAnnouncementRequest, UpdateAnnouncementStatusRequest, AnnouncementType, ActiveAnnouncementQuery, ActiveAnnouncement } from './customer-service/contracts/index.mjs';
3
- export { AnnouncementAppearance, AnnouncementButton, AnnouncementCompany, AnnouncementPayload, AnnouncementTargetingRuleUrl, AnnouncementTargetingRules, AnnouncementVisualStatus, CompanyData, ManagedUser, StrongPasswordOptions, WorkGroup, WorkGroupMember } from './customer-service/contracts/index.mjs';
2
+ import { CompanyResponse, UpdateCompanyRequest, GetSupportWidgetIdResponse, UpdateSupportWidgetIdRequest, UpdateSupportWidgetIdResponse, CompanyQueue, CompanyWithConfigsResponse, StrongPasswordOptionsResponse, CompanyConfigKey, CompanyConfigResponse, StrongPasswordOptions, CompanyBooleanConfigKey, UpdateCompanyBooleanConfigRequest, CompanyStringConfigKey, UpdateCompanyStringConfigRequest, User, WorkGroupListResponse, WorkGroupResponse, WorkGroupMembersResponse, GetAllUsersParams, GetAllUsersResponse, GetManagedUsersResponse, GetUserByIdResponse, UpdateCompanyUserRequest, UpdateUserPasswordRequest, UpdateUserPasswordResponse, UpdateCompanyUserAvatarResponse, GenerateTwoFactorOtpRequest, GenerateTwoFactorOtpResponse, ValidateTwoFactorOtpRequest, ValidateTwoFactorOtpResponse, AnnouncementListFilters, AnnouncementListResponse, Announcement, CreateAnnouncementRequest, UpdateAnnouncementRequest, UpdateAnnouncementStatusRequest, AnnouncementType, ActiveAnnouncementQuery, ActiveAnnouncement } from './customer-service/contracts/index.mjs';
3
+ export { AnnouncementAppearance, AnnouncementButton, AnnouncementCompany, AnnouncementPayload, AnnouncementTargetingRuleUrl, AnnouncementTargetingRules, AnnouncementVisualStatus, CompanyData, ManagedUser, WorkGroup, WorkGroupMember } from './customer-service/contracts/index.mjs';
4
4
  import { ProviderListResponse, Config, GetProviderConfigurationsParams, ProviderConfigurationsResponse, GetProviderDisplayInfoParams, ProviderDisplayInfoResponse, GetConfigsByProviderParams, ConfigListByProviderResponse, Queue, GetMemberQueuesRequest, QueueMember, GetServiceGroupsParams, ServiceGroupsResponse, MetaTemplateConfigResponse, MetaTemplateConfigsResponse, FindOrCreateQueueRuleRequest, QueueRule, GetRootRulesRequest, RootRulesResponse } from './chat-config/contracts/index.mjs';
5
5
  export { ConfigProvider, DistributionType, MetaTemplateButton, Provider, ProviderConfiguration, ProviderName, QueueListResponse, Rule, ServiceGroup, WhatsAppProviderSettings, WidgetProviderSettings } from './chat-config/contracts/index.mjs';
6
6
  import { CampaignQueryParams, CampaignPaginatedResponse, Campaign, CreateCampaignRequest, PatchCampaignRequest, CampaignContactQueryParams, CampaignContactPaginatedResponse, CampaignContactResponse, CreateCampaignContactRequest, PatchCampaignContactRequest, CampaignContactsDashboardQueryParams, CampaignContactsDashboardData, CampaignUser, CampaignWorkGroupQueryParams, CampaignWorkGroupPaginatedResponse, CreateCampaignWorkGroupRequest, CampaignWorkGroup, CampaignCompanyQueryParams, CampaignCompanyPaginatedResponse, CampaignCompanyResponse, EnableCampaignCompanyRequest, CampaignAccessResponse } from './campaigns/contracts/index.mjs';
@@ -17,6 +17,8 @@ import { ListInvitationsRequest, InvitationResponse, ReplyInvitationRequest, Can
17
17
  export { ForwardMessageDestination, ForwardMessageForwardingMetadata, ForwardMessageMetadata, MessageAttachment, MessageMetadata, MessageReactionResponse, MessageReplyContext, MessageStatusResponse, RoomActiveDates, RoomTagResponse } from './chat-webservice/contracts/index.mjs';
18
18
  import { ListContactHistoryRequest, ContactHistoryResponse } from './call-report/contracts/index.mjs';
19
19
  export { ContactHistoryIndex, ContactHistorySortOrder, ContactInteractionResponse, InteractionCallStepResponse, InteractionChatStepResponse, InteractionMemberResponse, InteractionOrganizationResponse } from './call-report/contracts/index.mjs';
20
+ import { CallEndpoint } from './calls/contracts/index.mjs';
21
+ export { CallEndpointStatus } from './calls/contracts/index.mjs';
20
22
  import { GetCommentHistoryRequest, CommentHistoryPage, CasePermissions, UpdateCasePermissionsRequest, GetCaseFeedByActionsRequest, CaseFeedByActionItem, ListCasesRequest, ListCasesResponse, CreateTimeEntryRequest, CaseTimeEntry, ListTimeEntriesRequest, ListTimeEntriesPage, UpdateTimeEntryRequest, DeleteTimeEntryRequest } from './cases/contracts/index.mjs';
21
23
  export { CaseListItem, CasePermissionsValue, CommentHistoryChangeType, CommentHistoryCursor, CommentHistoryEntry, ListCasesCursor, TimeEntryCursor } from './cases/contracts/index.mjs';
22
24
  import { GetAccessPackagesParams, PaginatedResult, AccessPackage, GetCompanyAccessPackagesParams, CompanyAccessPackageItem, CreateCompanyAccessPackagePayload, UpdateCompanyAccessPackagePayload, GetCompanyResourcesParams, CompanyResource } from './access-hub/contracts/index.mjs';
@@ -36,12 +38,66 @@ declare class CustomerServiceGateway {
36
38
  * @returns The company data wrapped in a {@link CompanyResponse}.
37
39
  */
38
40
  getCompanyById(companyId: string): Promise<CompanyResponse>;
41
+ /**
42
+ * Updates the current company settings.
43
+ * @param payload - The company fields to update.
44
+ * @returns The updated company data wrapped in a {@link CompanyResponse}.
45
+ */
46
+ updateCompany(payload: UpdateCompanyRequest): Promise<CompanyResponse>;
47
+ /**
48
+ * Retrieves the support widget identifier for the current company.
49
+ * @returns The support widget identifier.
50
+ */
51
+ getSupportWidgetId(): Promise<GetSupportWidgetIdResponse>;
52
+ /**
53
+ * Updates the support widget identifier for the current company.
54
+ * @param payload - The support widget identifier to set.
55
+ * @returns The updated company support widget data.
56
+ */
57
+ updateSupportWidgetId(payload: UpdateSupportWidgetIdRequest): Promise<UpdateSupportWidgetIdResponse>;
58
+ /**
59
+ * Retrieves the list of queues configured for the current company.
60
+ * @returns The company queues.
61
+ */
62
+ getCompanyQueues(): Promise<CompanyQueue[]>;
63
+ /**
64
+ * Retrieves the current company data along with all its config entries.
65
+ * @returns The company data with its configs.
66
+ */
67
+ getCompanyConfigs(): Promise<CompanyWithConfigsResponse>;
68
+ /**
69
+ * Retrieves a company config entry by key.
70
+ * @param key - The config key to fetch.
71
+ * @returns The company config entry.
72
+ */
73
+ getCompanyConfig(key: 'strong-password-options'): Promise<StrongPasswordOptionsResponse>;
74
+ getCompanyConfig(key: CompanyConfigKey): Promise<CompanyConfigResponse>;
39
75
  /**
40
76
  * Retrieves the strong password options config for a company.
41
77
  * @param companyId - The unique identifier of the company.
42
78
  * @returns The strong password options company config.
43
79
  */
44
80
  getStrongPasswordOptions(companyId: string): Promise<StrongPasswordOptionsResponse>;
81
+ /**
82
+ * Updates the strong password options config for the current company.
83
+ * @param payload - The strong password policy rules to apply.
84
+ * @returns The updated strong password options company config.
85
+ */
86
+ updateStrongPasswordOptions(payload: StrongPasswordOptions): Promise<StrongPasswordOptionsResponse>;
87
+ /**
88
+ * Updates a boolean company config by key.
89
+ * @param key - The config key to update.
90
+ * @param payload - The boolean value to set.
91
+ * @returns The updated company config entry.
92
+ */
93
+ updateCompanyBooleanConfig(key: CompanyBooleanConfigKey, payload: UpdateCompanyBooleanConfigRequest): Promise<CompanyConfigResponse>;
94
+ /**
95
+ * Updates a string company config by key.
96
+ * @param key - The config key to update.
97
+ * @param payload - The string value to set.
98
+ * @returns The updated company config entry.
99
+ */
100
+ updateCompanyStringConfig(key: CompanyStringConfigKey, payload: UpdateCompanyStringConfigRequest): Promise<CompanyConfigResponse>;
45
101
  /**
46
102
  * Retrieves a user by login email.
47
103
  * @param email - The user email used as login identifier.
@@ -627,6 +683,20 @@ declare class CallReportGateway {
627
683
  listContactHistory(params?: ListContactHistoryRequest): Promise<ContactHistoryResponse>;
628
684
  }
629
685
 
686
+ /**
687
+ * Gateway for interacting with the Calls API.
688
+ */
689
+ declare class CallsGateway {
690
+ private readonly httpClient;
691
+ private readonly baseUrl;
692
+ constructor(httpClient: AxiosInstance, baseUrl: string);
693
+ /**
694
+ * Retrieves all call endpoints and their current status.
695
+ * @returns The list of call endpoints.
696
+ */
697
+ getEndpoints(): Promise<CallEndpoint[]>;
698
+ }
699
+
630
700
  /** Request parameters for retrieving the webhooks scenario for a company. */
631
701
  interface GetWebhooksByCompanyRequest {
632
702
  companyId: string;
@@ -738,6 +808,7 @@ type GatewayMap = {
738
808
  integrations: IntegrationsGateway;
739
809
  'chat-webservice': ChatWebserviceGateway;
740
810
  'call-report': CallReportGateway;
811
+ calls: CallsGateway;
741
812
  cases: CasesGateway;
742
813
  rh: RhGateway;
743
814
  'access-hub': AccessHubGateway;
@@ -780,6 +851,9 @@ interface GatewayClientParams {
780
851
  callReport?: {
781
852
  baseUrl: string;
782
853
  };
854
+ calls?: {
855
+ baseUrl: string;
856
+ };
783
857
  cases?: {
784
858
  baseUrl: string;
785
859
  };
@@ -802,6 +876,7 @@ declare const SERVICE_GATEWAYS: {
802
876
  readonly INTEGRATIONS: "integrations";
803
877
  readonly CHAT_WEBSERVICE: "chat-webservice";
804
878
  readonly CALL_REPORT: "call-report";
879
+ readonly CALLS: "calls";
805
880
  readonly CASES: "cases";
806
881
  readonly RH: "rh";
807
882
  readonly ACCESS_HUB: "access-hub";
@@ -831,4 +906,4 @@ declare const configure: (params: GatewayClientParams) => void;
831
906
  */
832
907
  declare function gateway<T extends keyof GatewayMap>(service: T): GatewayMap[T];
833
908
 
834
- export { AccessPackage, ActiveAnnouncement, ActiveAnnouncementQuery, Announcement, AnnouncementListFilters, AnnouncementListResponse, AnnouncementType, AttachmentByIdResponse, AudioConvertResponse, AutomationPartner, AutomationPartnerAction, Campaign, CampaignAccessResponse, CampaignCompanyPaginatedResponse, CampaignCompanyQueryParams, CampaignCompanyResponse, CampaignContactPaginatedResponse, CampaignContactQueryParams, CampaignContactResponse, CampaignContactsDashboardData, CampaignContactsDashboardQueryParams, CampaignPaginatedResponse, CampaignQueryParams, CampaignUser, CampaignWorkGroup, CampaignWorkGroupPaginatedResponse, CampaignWorkGroupQueryParams, CancelInvitationRequest, CaseFeedByActionItem, CasePermissions, CaseTimeEntry, CommentHistoryPage, CompanyAccessPackageItem, CompanyResource, CompanyResponse, Config, ConfigListByProviderResponse, ContactCategoryResponse, ContactHistoryResponse, ContactPhoneSearchResponse, ContactResponse, CreateAnnouncementRequest, CreateAutomationPartnerRequest, CreateCampaignContactRequest, CreateCampaignRequest, CreateCampaignWorkGroupRequest, CreateCompanyAccessPackagePayload, CreateIntegrationActionRequest, CreateIntegrationFieldRequest, CreateIntegrationPartnerRequest, CreateTimeEntryRequest, CreateWebhookRequest$1 as CreateWebhookRequest, DeleteIntegrationActionParams, DeleteIntegrationFieldParams, DeleteIntegrationPartnerParams, DeleteTimeEntryRequest, EnableCampaignCompanyRequest, FindOrCreateContactRequest, FindOrCreateQueueRuleRequest, FlowCatalogParams, FlowCatalogResponse, FlowDefinition, FlowReadiness, ForwardMessageRequest, GenerateTwoFactorOtpRequest, GenerateTwoFactorOtpResponse, GetAccessPackagesParams, GetAllUsersParams, GetAllUsersResponse, GetAttachmentByIdRequest, GetAutomationPartnerRequest, GetCaseFeedByActionsRequest, GetCommentHistoryRequest, GetCompanyAccessPackagesParams, GetCompanyResourcesParams, GetConfigTemplatesParams, GetConfigTemplatesResponse, GetConfigsByProviderParams, GetContactPhonesParams, GetInitialContextRequest, GetInitialContextResponse, GetIntegrationHooksCatalogRequest, GetIntegrationPartnersByCompanyRequest, GetManagedUsersResponse, GetMemberQueuesRequest, GetMessagesByCursorRequest, GetMessagesByCursorResponse, GetPresignedUrlRequest, GetProviderConfigurationsParams, GetProviderDisplayInfoParams, GetRoomByIdRequest, GetRootRulesRequest, GetServiceGroupsParams, GetUserByIdResponse, GetWebhooksByCompanyRequest$1 as GetWebhooksByCompanyRequest, HookCatalogItem, IntegrationAction, IntegrationField, IntegrationPartner, InvitationResponse, ListAutomationActionsRequest, ListAutomationPartnersRequest, ListCasesRequest, ListCasesResponse, ListContactHistoryRequest, ListInvitationsRequest, ListLiveUserRoomsRequest, ListTimeEntriesPage, ListTimeEntriesRequest, LiveUserRoomResponse, MarkMessagesAsReadRequest, MarkMessagesAsReadResponse, MessageResponse, MetaTemplateConfigResponse, MetaTemplateConfigsResponse, PaginatedResult, PatchCampaignContactRequest, PatchCampaignRequest, ProviderConfigurationsResponse, ProviderDisplayInfoResponse, ProviderListResponse, Queue, QueueMember, QueueRule, ReplyInvitationRequest, RoomMemberResponse, RoomResponse, RootRulesResponse, SERVICE_GATEWAYS, SERVICE_GATEWAYS as SERVICE_GATEWAYS_TYPE, SendAttachmentMessageResponse, SendMessageRequest, ServiceGroupsResponse, StrongPasswordOptionsResponse, UpdateAnnouncementRequest, UpdateAnnouncementStatusRequest, UpdateCasePermissionsRequest, UpdateCompanyAccessPackagePayload, UpdateCompanyUserAvatarResponse, UpdateCompanyUserRequest, UpdateIntegrationActionParams, UpdateIntegrationFieldParams, UpdateMemberInRoomRequest, UpdateTimeEntryRequest, UpdateUserPasswordRequest, UpdateUserPasswordResponse, UploadPresignedUrlResponse, User, ValidateTwoFactorOtpRequest, ValidateTwoFactorOtpResponse, WorkGroupListResponse, WorkGroupMembersResponse, WorkGroupResponse, configure, gateway };
909
+ export { AccessPackage, ActiveAnnouncement, ActiveAnnouncementQuery, Announcement, AnnouncementListFilters, AnnouncementListResponse, AnnouncementType, AttachmentByIdResponse, AudioConvertResponse, AutomationPartner, AutomationPartnerAction, CallEndpoint, Campaign, CampaignAccessResponse, CampaignCompanyPaginatedResponse, CampaignCompanyQueryParams, CampaignCompanyResponse, CampaignContactPaginatedResponse, CampaignContactQueryParams, CampaignContactResponse, CampaignContactsDashboardData, CampaignContactsDashboardQueryParams, CampaignPaginatedResponse, CampaignQueryParams, CampaignUser, CampaignWorkGroup, CampaignWorkGroupPaginatedResponse, CampaignWorkGroupQueryParams, CancelInvitationRequest, CaseFeedByActionItem, CasePermissions, CaseTimeEntry, CommentHistoryPage, CompanyAccessPackageItem, CompanyBooleanConfigKey, CompanyConfigKey, CompanyConfigResponse, CompanyQueue, CompanyResource, CompanyResponse, CompanyStringConfigKey, CompanyWithConfigsResponse, Config, ConfigListByProviderResponse, ContactCategoryResponse, ContactHistoryResponse, ContactPhoneSearchResponse, ContactResponse, CreateAnnouncementRequest, CreateAutomationPartnerRequest, CreateCampaignContactRequest, CreateCampaignRequest, CreateCampaignWorkGroupRequest, CreateCompanyAccessPackagePayload, CreateIntegrationActionRequest, CreateIntegrationFieldRequest, CreateIntegrationPartnerRequest, CreateTimeEntryRequest, CreateWebhookRequest$1 as CreateWebhookRequest, DeleteIntegrationActionParams, DeleteIntegrationFieldParams, DeleteIntegrationPartnerParams, DeleteTimeEntryRequest, EnableCampaignCompanyRequest, FindOrCreateContactRequest, FindOrCreateQueueRuleRequest, FlowCatalogParams, FlowCatalogResponse, FlowDefinition, FlowReadiness, ForwardMessageRequest, GenerateTwoFactorOtpRequest, GenerateTwoFactorOtpResponse, GetAccessPackagesParams, GetAllUsersParams, GetAllUsersResponse, GetAttachmentByIdRequest, GetAutomationPartnerRequest, GetCaseFeedByActionsRequest, GetCommentHistoryRequest, GetCompanyAccessPackagesParams, GetCompanyResourcesParams, GetConfigTemplatesParams, GetConfigTemplatesResponse, GetConfigsByProviderParams, GetContactPhonesParams, GetInitialContextRequest, GetInitialContextResponse, GetIntegrationHooksCatalogRequest, GetIntegrationPartnersByCompanyRequest, GetManagedUsersResponse, GetMemberQueuesRequest, GetMessagesByCursorRequest, GetMessagesByCursorResponse, GetPresignedUrlRequest, GetProviderConfigurationsParams, GetProviderDisplayInfoParams, GetRoomByIdRequest, GetRootRulesRequest, GetServiceGroupsParams, GetSupportWidgetIdResponse, GetUserByIdResponse, GetWebhooksByCompanyRequest$1 as GetWebhooksByCompanyRequest, HookCatalogItem, IntegrationAction, IntegrationField, IntegrationPartner, InvitationResponse, ListAutomationActionsRequest, ListAutomationPartnersRequest, ListCasesRequest, ListCasesResponse, ListContactHistoryRequest, ListInvitationsRequest, ListLiveUserRoomsRequest, ListTimeEntriesPage, ListTimeEntriesRequest, LiveUserRoomResponse, MarkMessagesAsReadRequest, MarkMessagesAsReadResponse, MessageResponse, MetaTemplateConfigResponse, MetaTemplateConfigsResponse, PaginatedResult, PatchCampaignContactRequest, PatchCampaignRequest, ProviderConfigurationsResponse, ProviderDisplayInfoResponse, ProviderListResponse, Queue, QueueMember, QueueRule, ReplyInvitationRequest, RoomMemberResponse, RoomResponse, RootRulesResponse, SERVICE_GATEWAYS, SERVICE_GATEWAYS as SERVICE_GATEWAYS_TYPE, SendAttachmentMessageResponse, SendMessageRequest, ServiceGroupsResponse, StrongPasswordOptions, StrongPasswordOptionsResponse, UpdateAnnouncementRequest, UpdateAnnouncementStatusRequest, UpdateCasePermissionsRequest, UpdateCompanyAccessPackagePayload, UpdateCompanyBooleanConfigRequest, UpdateCompanyRequest, UpdateCompanyStringConfigRequest, UpdateCompanyUserAvatarResponse, UpdateCompanyUserRequest, UpdateIntegrationActionParams, UpdateIntegrationFieldParams, UpdateMemberInRoomRequest, UpdateSupportWidgetIdRequest, UpdateSupportWidgetIdResponse, UpdateTimeEntryRequest, UpdateUserPasswordRequest, UpdateUserPasswordResponse, UploadPresignedUrlResponse, User, ValidateTwoFactorOtpRequest, ValidateTwoFactorOtpResponse, WorkGroupListResponse, WorkGroupMembersResponse, WorkGroupResponse, configure, gateway };