purecloud-platform-client-v2 173.1.0 → 174.0.0
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/README.md +2 -2
- package/dist/node/purecloud-platform-client-v2.js +1427 -101
- package/dist/web-amd/purecloud-platform-client-v2.js +1427 -101
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +1427 -101
- package/dist/web-cjs/purecloud-platform-client-v2.js +1427 -101
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +1076 -18
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +5 -4
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +493 -1
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +223 -5
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +62 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +188 -3
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +10 -8
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +3 -2
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +7 -3
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +10 -5
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +362 -5
- package/src/purecloud-platform-client-v2/index.js +1 -1
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ class AnalyticsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Analytics service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 174.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -153,13 +153,14 @@ class AnalyticsApi {
|
|
|
153
153
|
|
|
154
154
|
/**
|
|
155
155
|
* Get Reporting Turns.
|
|
156
|
-
* Returns the reporting turns grouped by session, in reverse chronological order from the date the session was created, with the reporting turns from the most recent session appearing at the start of the list.
|
|
156
|
+
* Returns the reporting turns grouped by session, in reverse chronological order from the date the session was created, with the reporting turns from the most recent session appearing at the start of the list. For pagination, clients should keep sending requests using the value of nextUri in the response, until its no longer present, only then have all items have been returned. Note: resources returned by this endpoint do not persist indefinitely, as they auto delete after a predefined period.
|
|
157
157
|
* @param {String} botFlowId ID of the bot flow.
|
|
158
158
|
* @param {Object} opts Optional parameters
|
|
159
159
|
* @param {String} opts.after The cursor that points to the ID of the last item in the list of entities that has been returned.
|
|
160
160
|
* @param {String} opts.pageSize Max number of entities to return. Maximum of 250 (default to 50)
|
|
161
|
+
* @param {String} opts.interval Date range filter based on the date the individual resources were completed. UTC is the default if no TZ is supplied, however alternate timezones can be used e.g: '2022-11-22T09:11:11.111+08:00/2022-11-30T07:17:44.586-07'. . Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss
|
|
161
162
|
* @param {String} opts.actionId Optional action ID to get the reporting turns associated to a particular flow action
|
|
162
|
-
* @param {String} opts.sessionId Optional session ID to get the reporting turns for a particular session
|
|
163
|
+
* @param {String} opts.sessionId Optional session ID to get the reporting turns for a particular session. Specifying a session ID alongside an action ID or a language or any ask action results is not allowed.
|
|
163
164
|
* @param {String} opts.language Optional language code to get the reporting turns for a particular language
|
|
164
165
|
* @param {Object} opts.askActionResults Optional case-insensitive comma separated list of ask action results to filter the reporting turns.
|
|
165
166
|
*/
|
|
@@ -175,7 +176,7 @@ class AnalyticsApi {
|
|
|
175
176
|
'/api/v2/analytics/botflows/{botFlowId}/reportingturns',
|
|
176
177
|
'GET',
|
|
177
178
|
{ 'botFlowId': botFlowId },
|
|
178
|
-
{ 'after': opts['after'],'pageSize': opts['pageSize'],'actionId': opts['actionId'],'sessionId': opts['sessionId'],'language': opts['language'],'askActionResults': opts['askActionResults'] },
|
|
179
|
+
{ 'after': opts['after'],'pageSize': opts['pageSize'],'interval': opts['interval'],'actionId': opts['actionId'],'sessionId': opts['sessionId'],'language': opts['language'],'askActionResults': opts['askActionResults'] },
|
|
179
180
|
{ },
|
|
180
181
|
{ },
|
|
181
182
|
null,
|
|
@@ -5,7 +5,7 @@ class ArchitectApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Architect service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 174.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -45,6 +45,125 @@ class ArchitectApi {
|
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
/**
|
|
49
|
+
* Delete a grammar.
|
|
50
|
+
*
|
|
51
|
+
* @param {String} grammarId grammar ID
|
|
52
|
+
* deleteArchitectGrammar is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
53
|
+
*/
|
|
54
|
+
deleteArchitectGrammar(grammarId) {
|
|
55
|
+
// verify the required parameter 'grammarId' is set
|
|
56
|
+
if (grammarId === undefined || grammarId === null) {
|
|
57
|
+
throw 'Missing the required parameter "grammarId" when calling deleteArchitectGrammar';
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return this.apiClient.callApi(
|
|
61
|
+
'/api/v2/architect/grammars/{grammarId}',
|
|
62
|
+
'DELETE',
|
|
63
|
+
{ 'grammarId': grammarId },
|
|
64
|
+
{ },
|
|
65
|
+
{ },
|
|
66
|
+
{ },
|
|
67
|
+
null,
|
|
68
|
+
['PureCloud OAuth'],
|
|
69
|
+
['application/json'],
|
|
70
|
+
['application/json']
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Delete specified grammar language
|
|
76
|
+
*
|
|
77
|
+
* @param {String} grammarId Grammar ID
|
|
78
|
+
* @param {String} languageCode Language
|
|
79
|
+
* deleteArchitectGrammarLanguage is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
80
|
+
*/
|
|
81
|
+
deleteArchitectGrammarLanguage(grammarId, languageCode) {
|
|
82
|
+
// verify the required parameter 'grammarId' is set
|
|
83
|
+
if (grammarId === undefined || grammarId === null) {
|
|
84
|
+
throw 'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguage';
|
|
85
|
+
}
|
|
86
|
+
// verify the required parameter 'languageCode' is set
|
|
87
|
+
if (languageCode === undefined || languageCode === null) {
|
|
88
|
+
throw 'Missing the required parameter "languageCode" when calling deleteArchitectGrammarLanguage';
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return this.apiClient.callApi(
|
|
92
|
+
'/api/v2/architect/grammars/{grammarId}/languages/{languageCode}',
|
|
93
|
+
'DELETE',
|
|
94
|
+
{ 'grammarId': grammarId,'languageCode': languageCode },
|
|
95
|
+
{ },
|
|
96
|
+
{ },
|
|
97
|
+
{ },
|
|
98
|
+
null,
|
|
99
|
+
['PureCloud OAuth'],
|
|
100
|
+
['application/json'],
|
|
101
|
+
['application/json']
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Clear the DTMF mode file for the grammar language if there is one
|
|
107
|
+
*
|
|
108
|
+
* @param {String} grammarId Grammar ID
|
|
109
|
+
* @param {String} languageCode Language
|
|
110
|
+
* deleteArchitectGrammarLanguageFilesDtmf is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
111
|
+
*/
|
|
112
|
+
deleteArchitectGrammarLanguageFilesDtmf(grammarId, languageCode) {
|
|
113
|
+
// verify the required parameter 'grammarId' is set
|
|
114
|
+
if (grammarId === undefined || grammarId === null) {
|
|
115
|
+
throw 'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguageFilesDtmf';
|
|
116
|
+
}
|
|
117
|
+
// verify the required parameter 'languageCode' is set
|
|
118
|
+
if (languageCode === undefined || languageCode === null) {
|
|
119
|
+
throw 'Missing the required parameter "languageCode" when calling deleteArchitectGrammarLanguageFilesDtmf';
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return this.apiClient.callApi(
|
|
123
|
+
'/api/v2/architect/grammars/{grammarId}/languages/{languageCode}/files/dtmf',
|
|
124
|
+
'DELETE',
|
|
125
|
+
{ 'grammarId': grammarId,'languageCode': languageCode },
|
|
126
|
+
{ },
|
|
127
|
+
{ },
|
|
128
|
+
{ },
|
|
129
|
+
null,
|
|
130
|
+
['PureCloud OAuth'],
|
|
131
|
+
['application/json'],
|
|
132
|
+
['application/json']
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Clear the voice mode file for the grammar language if there is one
|
|
138
|
+
*
|
|
139
|
+
* @param {String} grammarId Grammar ID
|
|
140
|
+
* @param {String} languageCode Language
|
|
141
|
+
* deleteArchitectGrammarLanguageFilesVoice is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
142
|
+
*/
|
|
143
|
+
deleteArchitectGrammarLanguageFilesVoice(grammarId, languageCode) {
|
|
144
|
+
// verify the required parameter 'grammarId' is set
|
|
145
|
+
if (grammarId === undefined || grammarId === null) {
|
|
146
|
+
throw 'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguageFilesVoice';
|
|
147
|
+
}
|
|
148
|
+
// verify the required parameter 'languageCode' is set
|
|
149
|
+
if (languageCode === undefined || languageCode === null) {
|
|
150
|
+
throw 'Missing the required parameter "languageCode" when calling deleteArchitectGrammarLanguageFilesVoice';
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
return this.apiClient.callApi(
|
|
154
|
+
'/api/v2/architect/grammars/{grammarId}/languages/{languageCode}/files/voice',
|
|
155
|
+
'DELETE',
|
|
156
|
+
{ 'grammarId': grammarId,'languageCode': languageCode },
|
|
157
|
+
{ },
|
|
158
|
+
{ },
|
|
159
|
+
{ },
|
|
160
|
+
null,
|
|
161
|
+
['PureCloud OAuth'],
|
|
162
|
+
['application/json'],
|
|
163
|
+
['application/json']
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
|
|
48
167
|
/**
|
|
49
168
|
* Delete an IVR Config.
|
|
50
169
|
*
|
|
@@ -729,6 +848,130 @@ class ArchitectApi {
|
|
|
729
848
|
);
|
|
730
849
|
}
|
|
731
850
|
|
|
851
|
+
/**
|
|
852
|
+
* Get a pageable list of basic emergency group objects filterable by query parameters.
|
|
853
|
+
* This returns emergency groups consisting of name and division. If one or more IDs are specified, the search will fetch flow outcomes that match the given ID(s) and not use any additional supplied query parameters in the search.
|
|
854
|
+
* @param {Object} opts Optional parameters
|
|
855
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
856
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
857
|
+
* @param {String} opts.sortBy Sort by (default to name)
|
|
858
|
+
* @param {String} opts.sortOrder Sort order (default to ASC)
|
|
859
|
+
* @param {Array.<String>} opts.id ID of the Emergency Groups to filter by.
|
|
860
|
+
* @param {String} opts.name Name of the Emergency Group to filter by.
|
|
861
|
+
* @param {Array.<String>} opts.divisionId List of divisionIds on which to filter.
|
|
862
|
+
*/
|
|
863
|
+
getArchitectEmergencygroupsDivisionviews(opts) {
|
|
864
|
+
opts = opts || {};
|
|
865
|
+
|
|
866
|
+
|
|
867
|
+
return this.apiClient.callApi(
|
|
868
|
+
'/api/v2/architect/emergencygroups/divisionviews',
|
|
869
|
+
'GET',
|
|
870
|
+
{ },
|
|
871
|
+
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'],'id': this.apiClient.buildCollectionParam(opts['id'], 'multi'),'name': opts['name'],'divisionId': this.apiClient.buildCollectionParam(opts['divisionId'], 'multi') },
|
|
872
|
+
{ },
|
|
873
|
+
{ },
|
|
874
|
+
null,
|
|
875
|
+
['PureCloud OAuth'],
|
|
876
|
+
['application/json'],
|
|
877
|
+
['application/json']
|
|
878
|
+
);
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
/**
|
|
882
|
+
* Get a grammar
|
|
883
|
+
* Returns a specified grammar
|
|
884
|
+
* @param {String} grammarId grammar ID
|
|
885
|
+
* @param {Object} opts Optional parameters
|
|
886
|
+
* @param {Boolean} opts.includeFileUrls Include grammar language file URLs
|
|
887
|
+
* getArchitectGrammar is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
888
|
+
*/
|
|
889
|
+
getArchitectGrammar(grammarId, opts) {
|
|
890
|
+
opts = opts || {};
|
|
891
|
+
|
|
892
|
+
// verify the required parameter 'grammarId' is set
|
|
893
|
+
if (grammarId === undefined || grammarId === null) {
|
|
894
|
+
throw 'Missing the required parameter "grammarId" when calling getArchitectGrammar';
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
return this.apiClient.callApi(
|
|
898
|
+
'/api/v2/architect/grammars/{grammarId}',
|
|
899
|
+
'GET',
|
|
900
|
+
{ 'grammarId': grammarId },
|
|
901
|
+
{ 'includeFileUrls': opts['includeFileUrls'] },
|
|
902
|
+
{ },
|
|
903
|
+
{ },
|
|
904
|
+
null,
|
|
905
|
+
['PureCloud OAuth'],
|
|
906
|
+
['application/json'],
|
|
907
|
+
['application/json']
|
|
908
|
+
);
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* Get a grammar language.
|
|
913
|
+
*
|
|
914
|
+
* @param {String} grammarId Grammar ID
|
|
915
|
+
* @param {String} languageCode Language
|
|
916
|
+
* getArchitectGrammarLanguage is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
917
|
+
*/
|
|
918
|
+
getArchitectGrammarLanguage(grammarId, languageCode) {
|
|
919
|
+
// verify the required parameter 'grammarId' is set
|
|
920
|
+
if (grammarId === undefined || grammarId === null) {
|
|
921
|
+
throw 'Missing the required parameter "grammarId" when calling getArchitectGrammarLanguage';
|
|
922
|
+
}
|
|
923
|
+
// verify the required parameter 'languageCode' is set
|
|
924
|
+
if (languageCode === undefined || languageCode === null) {
|
|
925
|
+
throw 'Missing the required parameter "languageCode" when calling getArchitectGrammarLanguage';
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
return this.apiClient.callApi(
|
|
929
|
+
'/api/v2/architect/grammars/{grammarId}/languages/{languageCode}',
|
|
930
|
+
'GET',
|
|
931
|
+
{ 'grammarId': grammarId,'languageCode': languageCode },
|
|
932
|
+
{ },
|
|
933
|
+
{ },
|
|
934
|
+
{ },
|
|
935
|
+
null,
|
|
936
|
+
['PureCloud OAuth'],
|
|
937
|
+
['application/json'],
|
|
938
|
+
['application/json']
|
|
939
|
+
);
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* Get a pageable list of grammars, filtered by query parameters
|
|
944
|
+
* Multiple IDs can be specified, in which case all matching grammars will be returned, and no other parameters will be evaluated.
|
|
945
|
+
* @param {Object} opts Optional parameters
|
|
946
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
947
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
948
|
+
* @param {Object} opts.sortBy Sort by (default to id)
|
|
949
|
+
* @param {Object} opts.sortOrder Sort order (default to asc)
|
|
950
|
+
* @param {Array.<String>} opts.id ID
|
|
951
|
+
* @param {String} opts.name Name
|
|
952
|
+
* @param {String} opts.description Description
|
|
953
|
+
* @param {String} opts.nameOrDescription Name or description
|
|
954
|
+
* @param {Boolean} opts.includeFileUrls Include grammar language file URLs
|
|
955
|
+
* getArchitectGrammars is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
956
|
+
*/
|
|
957
|
+
getArchitectGrammars(opts) {
|
|
958
|
+
opts = opts || {};
|
|
959
|
+
|
|
960
|
+
|
|
961
|
+
return this.apiClient.callApi(
|
|
962
|
+
'/api/v2/architect/grammars',
|
|
963
|
+
'GET',
|
|
964
|
+
{ },
|
|
965
|
+
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'],'id': this.apiClient.buildCollectionParam(opts['id'], 'multi'),'name': opts['name'],'description': opts['description'],'nameOrDescription': opts['nameOrDescription'],'includeFileUrls': opts['includeFileUrls'] },
|
|
966
|
+
{ },
|
|
967
|
+
{ },
|
|
968
|
+
null,
|
|
969
|
+
['PureCloud OAuth'],
|
|
970
|
+
['application/json'],
|
|
971
|
+
['application/json']
|
|
972
|
+
);
|
|
973
|
+
}
|
|
974
|
+
|
|
732
975
|
/**
|
|
733
976
|
* Get an IVR config.
|
|
734
977
|
*
|
|
@@ -784,6 +1027,36 @@ class ArchitectApi {
|
|
|
784
1027
|
);
|
|
785
1028
|
}
|
|
786
1029
|
|
|
1030
|
+
/**
|
|
1031
|
+
* Get a pageable list of basic ivr configuration information objects filterable by query parameters.
|
|
1032
|
+
*
|
|
1033
|
+
* @param {Object} opts Optional parameters
|
|
1034
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
1035
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
1036
|
+
* @param {String} opts.sortBy Sort by (default to name)
|
|
1037
|
+
* @param {String} opts.sortOrder Sort order (default to ASC)
|
|
1038
|
+
* @param {Array.<String>} opts.id ID of the IVR to filter by.
|
|
1039
|
+
* @param {String} opts.name Name of the IVR to filter by.
|
|
1040
|
+
* @param {Array.<String>} opts.divisionId List of divisionIds on which to filter.
|
|
1041
|
+
*/
|
|
1042
|
+
getArchitectIvrsDivisionviews(opts) {
|
|
1043
|
+
opts = opts || {};
|
|
1044
|
+
|
|
1045
|
+
|
|
1046
|
+
return this.apiClient.callApi(
|
|
1047
|
+
'/api/v2/architect/ivrs/divisionviews',
|
|
1048
|
+
'GET',
|
|
1049
|
+
{ },
|
|
1050
|
+
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'],'id': this.apiClient.buildCollectionParam(opts['id'], 'multi'),'name': opts['name'],'divisionId': this.apiClient.buildCollectionParam(opts['divisionId'], 'multi') },
|
|
1051
|
+
{ },
|
|
1052
|
+
{ },
|
|
1053
|
+
null,
|
|
1054
|
+
['PureCloud OAuth'],
|
|
1055
|
+
['application/json'],
|
|
1056
|
+
['application/json']
|
|
1057
|
+
);
|
|
1058
|
+
}
|
|
1059
|
+
|
|
787
1060
|
/**
|
|
788
1061
|
* Get specified user prompt
|
|
789
1062
|
*
|
|
@@ -1017,6 +1290,36 @@ class ArchitectApi {
|
|
|
1017
1290
|
);
|
|
1018
1291
|
}
|
|
1019
1292
|
|
|
1293
|
+
/**
|
|
1294
|
+
* Get a pageable list of basic schedule group configuration information objects filterable by query parameters.
|
|
1295
|
+
*
|
|
1296
|
+
* @param {Object} opts Optional parameters
|
|
1297
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
1298
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
1299
|
+
* @param {String} opts.sortBy Sort by (default to name)
|
|
1300
|
+
* @param {String} opts.sortOrder Sort order (default to ASC)
|
|
1301
|
+
* @param {Array.<String>} opts.id ID of the schedule group to filter by.
|
|
1302
|
+
* @param {String} opts.name Name of the schedule group to filter by.
|
|
1303
|
+
* @param {Array.<String>} opts.divisionId List of divisionIds on which to filter.
|
|
1304
|
+
*/
|
|
1305
|
+
getArchitectSchedulegroupsDivisionviews(opts) {
|
|
1306
|
+
opts = opts || {};
|
|
1307
|
+
|
|
1308
|
+
|
|
1309
|
+
return this.apiClient.callApi(
|
|
1310
|
+
'/api/v2/architect/schedulegroups/divisionviews',
|
|
1311
|
+
'GET',
|
|
1312
|
+
{ },
|
|
1313
|
+
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'],'id': this.apiClient.buildCollectionParam(opts['id'], 'multi'),'name': opts['name'],'divisionId': this.apiClient.buildCollectionParam(opts['divisionId'], 'multi') },
|
|
1314
|
+
{ },
|
|
1315
|
+
{ },
|
|
1316
|
+
null,
|
|
1317
|
+
['PureCloud OAuth'],
|
|
1318
|
+
['application/json'],
|
|
1319
|
+
['application/json']
|
|
1320
|
+
);
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1020
1323
|
/**
|
|
1021
1324
|
* Get a list of schedules.
|
|
1022
1325
|
*
|
|
@@ -1046,6 +1349,36 @@ class ArchitectApi {
|
|
|
1046
1349
|
);
|
|
1047
1350
|
}
|
|
1048
1351
|
|
|
1352
|
+
/**
|
|
1353
|
+
* Get a pageable list of basic schedule configuration information objects filterable by query parameters.
|
|
1354
|
+
*
|
|
1355
|
+
* @param {Object} opts Optional parameters
|
|
1356
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
1357
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
1358
|
+
* @param {String} opts.sortBy Sort by (default to name)
|
|
1359
|
+
* @param {String} opts.sortOrder Sort order (default to ASC)
|
|
1360
|
+
* @param {Array.<String>} opts.id ID of the schedule group to filter by.
|
|
1361
|
+
* @param {String} opts.name Name of the schedule group to filter by.
|
|
1362
|
+
* @param {Array.<String>} opts.divisionId List of divisionIds on which to filter.
|
|
1363
|
+
*/
|
|
1364
|
+
getArchitectSchedulesDivisionviews(opts) {
|
|
1365
|
+
opts = opts || {};
|
|
1366
|
+
|
|
1367
|
+
|
|
1368
|
+
return this.apiClient.callApi(
|
|
1369
|
+
'/api/v2/architect/schedules/divisionviews',
|
|
1370
|
+
'GET',
|
|
1371
|
+
{ },
|
|
1372
|
+
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'],'id': this.apiClient.buildCollectionParam(opts['id'], 'multi'),'name': opts['name'],'divisionId': this.apiClient.buildCollectionParam(opts['divisionId'], 'multi') },
|
|
1373
|
+
{ },
|
|
1374
|
+
{ },
|
|
1375
|
+
null,
|
|
1376
|
+
['PureCloud OAuth'],
|
|
1377
|
+
['application/json'],
|
|
1378
|
+
['application/json']
|
|
1379
|
+
);
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1049
1382
|
/**
|
|
1050
1383
|
* Get a system prompt
|
|
1051
1384
|
*
|
|
@@ -2056,6 +2389,36 @@ class ArchitectApi {
|
|
|
2056
2389
|
);
|
|
2057
2390
|
}
|
|
2058
2391
|
|
|
2392
|
+
/**
|
|
2393
|
+
* Updates a grammar
|
|
2394
|
+
*
|
|
2395
|
+
* @param {String} grammarId grammar ID
|
|
2396
|
+
* @param {Object} opts Optional parameters
|
|
2397
|
+
* @param {Object} opts.body
|
|
2398
|
+
* patchArchitectGrammar is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
2399
|
+
*/
|
|
2400
|
+
patchArchitectGrammar(grammarId, opts) {
|
|
2401
|
+
opts = opts || {};
|
|
2402
|
+
|
|
2403
|
+
// verify the required parameter 'grammarId' is set
|
|
2404
|
+
if (grammarId === undefined || grammarId === null) {
|
|
2405
|
+
throw 'Missing the required parameter "grammarId" when calling patchArchitectGrammar';
|
|
2406
|
+
}
|
|
2407
|
+
|
|
2408
|
+
return this.apiClient.callApi(
|
|
2409
|
+
'/api/v2/architect/grammars/{grammarId}',
|
|
2410
|
+
'PATCH',
|
|
2411
|
+
{ 'grammarId': grammarId },
|
|
2412
|
+
{ },
|
|
2413
|
+
{ },
|
|
2414
|
+
{ },
|
|
2415
|
+
opts['body'],
|
|
2416
|
+
['PureCloud OAuth'],
|
|
2417
|
+
['application/json'],
|
|
2418
|
+
['application/json']
|
|
2419
|
+
);
|
|
2420
|
+
}
|
|
2421
|
+
|
|
2059
2422
|
/**
|
|
2060
2423
|
* Rebuild Dependency Tracking data for an organization
|
|
2061
2424
|
* Asynchronous. Notification topic: v2.architect.dependencytracking.build
|
|
@@ -2101,6 +2464,135 @@ class ArchitectApi {
|
|
|
2101
2464
|
);
|
|
2102
2465
|
}
|
|
2103
2466
|
|
|
2467
|
+
/**
|
|
2468
|
+
* Creates a presigned URL for uploading a grammar DTMF mode file
|
|
2469
|
+
*
|
|
2470
|
+
* @param {String} grammarId Grammar ID
|
|
2471
|
+
* @param {String} languageCode Language
|
|
2472
|
+
* @param {Object} body query
|
|
2473
|
+
* postArchitectGrammarLanguageFilesDtmf is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
2474
|
+
*/
|
|
2475
|
+
postArchitectGrammarLanguageFilesDtmf(grammarId, languageCode, body) {
|
|
2476
|
+
// verify the required parameter 'grammarId' is set
|
|
2477
|
+
if (grammarId === undefined || grammarId === null) {
|
|
2478
|
+
throw 'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguageFilesDtmf';
|
|
2479
|
+
}
|
|
2480
|
+
// verify the required parameter 'languageCode' is set
|
|
2481
|
+
if (languageCode === undefined || languageCode === null) {
|
|
2482
|
+
throw 'Missing the required parameter "languageCode" when calling postArchitectGrammarLanguageFilesDtmf';
|
|
2483
|
+
}
|
|
2484
|
+
// verify the required parameter 'body' is set
|
|
2485
|
+
if (body === undefined || body === null) {
|
|
2486
|
+
throw 'Missing the required parameter "body" when calling postArchitectGrammarLanguageFilesDtmf';
|
|
2487
|
+
}
|
|
2488
|
+
|
|
2489
|
+
return this.apiClient.callApi(
|
|
2490
|
+
'/api/v2/architect/grammars/{grammarId}/languages/{languageCode}/files/dtmf',
|
|
2491
|
+
'POST',
|
|
2492
|
+
{ 'grammarId': grammarId,'languageCode': languageCode },
|
|
2493
|
+
{ },
|
|
2494
|
+
{ },
|
|
2495
|
+
{ },
|
|
2496
|
+
body,
|
|
2497
|
+
['PureCloud OAuth'],
|
|
2498
|
+
['application/json'],
|
|
2499
|
+
['application/json']
|
|
2500
|
+
);
|
|
2501
|
+
}
|
|
2502
|
+
|
|
2503
|
+
/**
|
|
2504
|
+
* Creates a presigned URL for uploading a grammar voice mode file
|
|
2505
|
+
*
|
|
2506
|
+
* @param {String} grammarId Grammar ID
|
|
2507
|
+
* @param {String} languageCode Language
|
|
2508
|
+
* @param {Object} body query
|
|
2509
|
+
* postArchitectGrammarLanguageFilesVoice is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
2510
|
+
*/
|
|
2511
|
+
postArchitectGrammarLanguageFilesVoice(grammarId, languageCode, body) {
|
|
2512
|
+
// verify the required parameter 'grammarId' is set
|
|
2513
|
+
if (grammarId === undefined || grammarId === null) {
|
|
2514
|
+
throw 'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguageFilesVoice';
|
|
2515
|
+
}
|
|
2516
|
+
// verify the required parameter 'languageCode' is set
|
|
2517
|
+
if (languageCode === undefined || languageCode === null) {
|
|
2518
|
+
throw 'Missing the required parameter "languageCode" when calling postArchitectGrammarLanguageFilesVoice';
|
|
2519
|
+
}
|
|
2520
|
+
// verify the required parameter 'body' is set
|
|
2521
|
+
if (body === undefined || body === null) {
|
|
2522
|
+
throw 'Missing the required parameter "body" when calling postArchitectGrammarLanguageFilesVoice';
|
|
2523
|
+
}
|
|
2524
|
+
|
|
2525
|
+
return this.apiClient.callApi(
|
|
2526
|
+
'/api/v2/architect/grammars/{grammarId}/languages/{languageCode}/files/voice',
|
|
2527
|
+
'POST',
|
|
2528
|
+
{ 'grammarId': grammarId,'languageCode': languageCode },
|
|
2529
|
+
{ },
|
|
2530
|
+
{ },
|
|
2531
|
+
{ },
|
|
2532
|
+
body,
|
|
2533
|
+
['PureCloud OAuth'],
|
|
2534
|
+
['application/json'],
|
|
2535
|
+
['application/json']
|
|
2536
|
+
);
|
|
2537
|
+
}
|
|
2538
|
+
|
|
2539
|
+
/**
|
|
2540
|
+
* Create a new language for a given grammar
|
|
2541
|
+
*
|
|
2542
|
+
* @param {String} grammarId Grammar ID
|
|
2543
|
+
* @param {Object} body
|
|
2544
|
+
* postArchitectGrammarLanguages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
2545
|
+
*/
|
|
2546
|
+
postArchitectGrammarLanguages(grammarId, body) {
|
|
2547
|
+
// verify the required parameter 'grammarId' is set
|
|
2548
|
+
if (grammarId === undefined || grammarId === null) {
|
|
2549
|
+
throw 'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguages';
|
|
2550
|
+
}
|
|
2551
|
+
// verify the required parameter 'body' is set
|
|
2552
|
+
if (body === undefined || body === null) {
|
|
2553
|
+
throw 'Missing the required parameter "body" when calling postArchitectGrammarLanguages';
|
|
2554
|
+
}
|
|
2555
|
+
|
|
2556
|
+
return this.apiClient.callApi(
|
|
2557
|
+
'/api/v2/architect/grammars/{grammarId}/languages',
|
|
2558
|
+
'POST',
|
|
2559
|
+
{ 'grammarId': grammarId },
|
|
2560
|
+
{ },
|
|
2561
|
+
{ },
|
|
2562
|
+
{ },
|
|
2563
|
+
body,
|
|
2564
|
+
['PureCloud OAuth'],
|
|
2565
|
+
['application/json'],
|
|
2566
|
+
['application/json']
|
|
2567
|
+
);
|
|
2568
|
+
}
|
|
2569
|
+
|
|
2570
|
+
/**
|
|
2571
|
+
* Create a new grammar
|
|
2572
|
+
*
|
|
2573
|
+
* @param {Object} body
|
|
2574
|
+
* postArchitectGrammars is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
2575
|
+
*/
|
|
2576
|
+
postArchitectGrammars(body) {
|
|
2577
|
+
// verify the required parameter 'body' is set
|
|
2578
|
+
if (body === undefined || body === null) {
|
|
2579
|
+
throw 'Missing the required parameter "body" when calling postArchitectGrammars';
|
|
2580
|
+
}
|
|
2581
|
+
|
|
2582
|
+
return this.apiClient.callApi(
|
|
2583
|
+
'/api/v2/architect/grammars',
|
|
2584
|
+
'POST',
|
|
2585
|
+
{ },
|
|
2586
|
+
{ },
|
|
2587
|
+
{ },
|
|
2588
|
+
{ },
|
|
2589
|
+
body,
|
|
2590
|
+
['PureCloud OAuth'],
|
|
2591
|
+
['application/json'],
|
|
2592
|
+
['application/json']
|
|
2593
|
+
);
|
|
2594
|
+
}
|
|
2595
|
+
|
|
2104
2596
|
/**
|
|
2105
2597
|
* Create IVR config.
|
|
2106
2598
|
*
|