purecloud-platform-client-v2 215.0.0 → 217.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 +3 -3
- package/dist/node/purecloud-platform-client-v2.js +1303 -493
- package/dist/web-amd/purecloud-platform-client-v2.js +1303 -493
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +435 -231
- package/dist/web-cjs/purecloud-platform-client-v2.js +441 -235
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +826 -472
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -305
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +2 -3
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +112 -1
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +387 -8
- 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 -5
- 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 +174 -2
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DataPrivacyApi.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/EmployeeEngagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +175 -7
- 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 +5 -3
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +21 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +13 -11
- 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/LogCaptureApi.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 +9 -8
- package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +3 -1
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +19 -7
- 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 +1 -1
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +4 -59
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +182 -1
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.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/SocialMediaApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +3 -3
- 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 +1 -1
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -3
- 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 +58 -1
- 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 +70 -1
- package/src/purecloud-platform-client-v2/index.js +1 -1
|
@@ -5,7 +5,7 @@ class AuthorizationApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Authorization service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 217.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -25,7 +25,7 @@ class AuthorizationApi {
|
|
|
25
25
|
*
|
|
26
26
|
* @param {String} divisionId Division ID
|
|
27
27
|
* @param {Object} opts Optional parameters
|
|
28
|
-
* @param {Boolean} opts.force Force delete this division
|
|
28
|
+
* @param {Boolean} opts.force DEPRECATED - Force delete this division. Warning: This option may cause any remaining objects in this division to be inaccessible. (default to false)
|
|
29
29
|
*/
|
|
30
30
|
deleteAuthorizationDivision(divisionId, opts) {
|
|
31
31
|
opts = opts || {};
|
|
@@ -49,6 +49,37 @@ class AuthorizationApi {
|
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
/**
|
|
53
|
+
* Delete an access control policy
|
|
54
|
+
*
|
|
55
|
+
* @param {String} targetName The domain:entity:action target to which the policy is applied
|
|
56
|
+
* @param {String} subjectId The ID of the subject to which the policy is applied
|
|
57
|
+
* deleteAuthorizationPoliciesTargetSubjectSubjectId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
58
|
+
*/
|
|
59
|
+
deleteAuthorizationPoliciesTargetSubjectSubjectId(targetName, subjectId) {
|
|
60
|
+
// verify the required parameter 'targetName' is set
|
|
61
|
+
if (targetName === undefined || targetName === null) {
|
|
62
|
+
throw 'Missing the required parameter "targetName" when calling deleteAuthorizationPoliciesTargetSubjectSubjectId';
|
|
63
|
+
}
|
|
64
|
+
// verify the required parameter 'subjectId' is set
|
|
65
|
+
if (subjectId === undefined || subjectId === null) {
|
|
66
|
+
throw 'Missing the required parameter "subjectId" when calling deleteAuthorizationPoliciesTargetSubjectSubjectId';
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return this.apiClient.callApi(
|
|
70
|
+
'/api/v2/authorization/policies/targets/{targetName}/subject/{subjectId}',
|
|
71
|
+
'DELETE',
|
|
72
|
+
{ 'targetName': targetName,'subjectId': subjectId },
|
|
73
|
+
{ },
|
|
74
|
+
{ },
|
|
75
|
+
{ },
|
|
76
|
+
null,
|
|
77
|
+
['PureCloud OAuth'],
|
|
78
|
+
['application/json'],
|
|
79
|
+
['application/json']
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
|
|
52
83
|
/**
|
|
53
84
|
* Delete an organization role.
|
|
54
85
|
*
|
|
@@ -363,6 +394,198 @@ class AuthorizationApi {
|
|
|
363
394
|
);
|
|
364
395
|
}
|
|
365
396
|
|
|
397
|
+
/**
|
|
398
|
+
* Get a page of access policies for an organization
|
|
399
|
+
*
|
|
400
|
+
* @param {Object} opts Optional parameters
|
|
401
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
402
|
+
* @param {Number} opts.pageSize Number of entities to return. Maximum of 200. (default to 25)
|
|
403
|
+
* getAuthorizationPolicies is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
404
|
+
*/
|
|
405
|
+
getAuthorizationPolicies(opts) {
|
|
406
|
+
opts = opts || {};
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
return this.apiClient.callApi(
|
|
410
|
+
'/api/v2/authorization/policies',
|
|
411
|
+
'GET',
|
|
412
|
+
{ },
|
|
413
|
+
{ 'after': opts['after'],'pageSize': opts['pageSize'] },
|
|
414
|
+
{ },
|
|
415
|
+
{ },
|
|
416
|
+
null,
|
|
417
|
+
['PureCloud OAuth'],
|
|
418
|
+
['application/json'],
|
|
419
|
+
['application/json']
|
|
420
|
+
);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* Get a page of access policies for a given subject
|
|
425
|
+
*
|
|
426
|
+
* @param {String} subjectId The ID of the subject to which policies are applied
|
|
427
|
+
* @param {Object} opts Optional parameters
|
|
428
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
429
|
+
* @param {Number} opts.pageSize Number of entities to return. Maximum of 200. (default to 25)
|
|
430
|
+
* getAuthorizationPoliciesSubjectSubjectId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
431
|
+
*/
|
|
432
|
+
getAuthorizationPoliciesSubjectSubjectId(subjectId, opts) {
|
|
433
|
+
opts = opts || {};
|
|
434
|
+
|
|
435
|
+
// verify the required parameter 'subjectId' is set
|
|
436
|
+
if (subjectId === undefined || subjectId === null) {
|
|
437
|
+
throw 'Missing the required parameter "subjectId" when calling getAuthorizationPoliciesSubjectSubjectId';
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
return this.apiClient.callApi(
|
|
441
|
+
'/api/v2/authorization/policies/subject/{subjectId}',
|
|
442
|
+
'GET',
|
|
443
|
+
{ 'subjectId': subjectId },
|
|
444
|
+
{ 'after': opts['after'],'pageSize': opts['pageSize'] },
|
|
445
|
+
{ },
|
|
446
|
+
{ },
|
|
447
|
+
null,
|
|
448
|
+
['PureCloud OAuth'],
|
|
449
|
+
['application/json'],
|
|
450
|
+
['application/json']
|
|
451
|
+
);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Get a page of access policies for a given policy target
|
|
456
|
+
*
|
|
457
|
+
* @param {String} targetName The domain:entity:action resource target to which policies are applied
|
|
458
|
+
* @param {Object} opts Optional parameters
|
|
459
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
460
|
+
* @param {Number} opts.pageSize Number of entities to return. Maximum of 200. (default to 25)
|
|
461
|
+
* getAuthorizationPoliciesTarget is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
462
|
+
*/
|
|
463
|
+
getAuthorizationPoliciesTarget(targetName, opts) {
|
|
464
|
+
opts = opts || {};
|
|
465
|
+
|
|
466
|
+
// verify the required parameter 'targetName' is set
|
|
467
|
+
if (targetName === undefined || targetName === null) {
|
|
468
|
+
throw 'Missing the required parameter "targetName" when calling getAuthorizationPoliciesTarget';
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
return this.apiClient.callApi(
|
|
472
|
+
'/api/v2/authorization/policies/targets/{targetName}',
|
|
473
|
+
'GET',
|
|
474
|
+
{ 'targetName': targetName },
|
|
475
|
+
{ 'after': opts['after'],'pageSize': opts['pageSize'] },
|
|
476
|
+
{ },
|
|
477
|
+
{ },
|
|
478
|
+
null,
|
|
479
|
+
['PureCloud OAuth'],
|
|
480
|
+
['application/json'],
|
|
481
|
+
['application/json']
|
|
482
|
+
);
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Get an access control policy for a specified resource target and subject
|
|
487
|
+
*
|
|
488
|
+
* @param {String} targetName The domain:entity:action resource target to which the policy is applied
|
|
489
|
+
* @param {String} subjectId The ID of the subject to which the policy is applied
|
|
490
|
+
* getAuthorizationPoliciesTargetSubjectSubjectId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
491
|
+
*/
|
|
492
|
+
getAuthorizationPoliciesTargetSubjectSubjectId(targetName, subjectId) {
|
|
493
|
+
// verify the required parameter 'targetName' is set
|
|
494
|
+
if (targetName === undefined || targetName === null) {
|
|
495
|
+
throw 'Missing the required parameter "targetName" when calling getAuthorizationPoliciesTargetSubjectSubjectId';
|
|
496
|
+
}
|
|
497
|
+
// verify the required parameter 'subjectId' is set
|
|
498
|
+
if (subjectId === undefined || subjectId === null) {
|
|
499
|
+
throw 'Missing the required parameter "subjectId" when calling getAuthorizationPoliciesTargetSubjectSubjectId';
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
return this.apiClient.callApi(
|
|
503
|
+
'/api/v2/authorization/policies/targets/{targetName}/subject/{subjectId}',
|
|
504
|
+
'GET',
|
|
505
|
+
{ 'targetName': targetName,'subjectId': subjectId },
|
|
506
|
+
{ },
|
|
507
|
+
{ },
|
|
508
|
+
{ },
|
|
509
|
+
null,
|
|
510
|
+
['PureCloud OAuth'],
|
|
511
|
+
['application/json'],
|
|
512
|
+
['application/json']
|
|
513
|
+
);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Get a map of policy targets to valid attributes for those targets
|
|
518
|
+
*
|
|
519
|
+
* getAuthorizationPoliciesTargets is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
520
|
+
*/
|
|
521
|
+
getAuthorizationPoliciesTargets() {
|
|
522
|
+
|
|
523
|
+
return this.apiClient.callApi(
|
|
524
|
+
'/api/v2/authorization/policies/targets',
|
|
525
|
+
'GET',
|
|
526
|
+
{ },
|
|
527
|
+
{ },
|
|
528
|
+
{ },
|
|
529
|
+
{ },
|
|
530
|
+
null,
|
|
531
|
+
['PureCloud OAuth'],
|
|
532
|
+
['application/json'],
|
|
533
|
+
['application/json']
|
|
534
|
+
);
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* Get an access control policy with the specified policy ID
|
|
539
|
+
*
|
|
540
|
+
* @param {String} policyId The ID of the policy to retrieve
|
|
541
|
+
* getAuthorizationPolicy is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
542
|
+
*/
|
|
543
|
+
getAuthorizationPolicy(policyId) {
|
|
544
|
+
// verify the required parameter 'policyId' is set
|
|
545
|
+
if (policyId === undefined || policyId === null) {
|
|
546
|
+
throw 'Missing the required parameter "policyId" when calling getAuthorizationPolicy';
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
return this.apiClient.callApi(
|
|
550
|
+
'/api/v2/authorization/policies/{policyId}',
|
|
551
|
+
'GET',
|
|
552
|
+
{ 'policyId': policyId },
|
|
553
|
+
{ },
|
|
554
|
+
{ },
|
|
555
|
+
{ },
|
|
556
|
+
null,
|
|
557
|
+
['PureCloud OAuth'],
|
|
558
|
+
['application/json'],
|
|
559
|
+
['application/json']
|
|
560
|
+
);
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* Get the list of attributes used to evaluate an access control policy with the specified policy ID
|
|
565
|
+
*
|
|
566
|
+
* @param {String} policyId The ID of the policy to retrieve attributes
|
|
567
|
+
* getAuthorizationPolicyAttributes is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
568
|
+
*/
|
|
569
|
+
getAuthorizationPolicyAttributes(policyId) {
|
|
570
|
+
// verify the required parameter 'policyId' is set
|
|
571
|
+
if (policyId === undefined || policyId === null) {
|
|
572
|
+
throw 'Missing the required parameter "policyId" when calling getAuthorizationPolicyAttributes';
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
return this.apiClient.callApi(
|
|
576
|
+
'/api/v2/authorization/policies/{policyId}/attributes',
|
|
577
|
+
'GET',
|
|
578
|
+
{ 'policyId': policyId },
|
|
579
|
+
{ },
|
|
580
|
+
{ },
|
|
581
|
+
{ },
|
|
582
|
+
null,
|
|
583
|
+
['PureCloud OAuth'],
|
|
584
|
+
['application/json'],
|
|
585
|
+
['application/json']
|
|
586
|
+
);
|
|
587
|
+
}
|
|
588
|
+
|
|
366
589
|
/**
|
|
367
590
|
* Get the list of enabled products
|
|
368
591
|
* Gets the list of enabled products. Some example product names are: collaborateFree, collaboratePro, communicate, and engage.
|
|
@@ -777,16 +1000,17 @@ class AuthorizationApi {
|
|
|
777
1000
|
* Recreate a previously deleted division.
|
|
778
1001
|
*
|
|
779
1002
|
* @param {String} divisionId Division ID
|
|
780
|
-
* @param {Object}
|
|
781
|
-
* @param {Object} opts.body Recreated division data
|
|
1003
|
+
* @param {Object} body Recreated division data
|
|
782
1004
|
*/
|
|
783
|
-
postAuthorizationDivisionRestore(divisionId,
|
|
784
|
-
opts = opts || {};
|
|
785
|
-
|
|
1005
|
+
postAuthorizationDivisionRestore(divisionId, body) {
|
|
786
1006
|
// verify the required parameter 'divisionId' is set
|
|
787
1007
|
if (divisionId === undefined || divisionId === null) {
|
|
788
1008
|
throw 'Missing the required parameter "divisionId" when calling postAuthorizationDivisionRestore';
|
|
789
1009
|
}
|
|
1010
|
+
// verify the required parameter 'body' is set
|
|
1011
|
+
if (body === undefined || body === null) {
|
|
1012
|
+
throw 'Missing the required parameter "body" when calling postAuthorizationDivisionRestore';
|
|
1013
|
+
}
|
|
790
1014
|
|
|
791
1015
|
return this.apiClient.callApi(
|
|
792
1016
|
'/api/v2/authorization/divisions/{divisionId}/restore',
|
|
@@ -795,7 +1019,7 @@ class AuthorizationApi {
|
|
|
795
1019
|
{ },
|
|
796
1020
|
{ },
|
|
797
1021
|
{ },
|
|
798
|
-
|
|
1022
|
+
body,
|
|
799
1023
|
['PureCloud OAuth'],
|
|
800
1024
|
['application/json'],
|
|
801
1025
|
['application/json']
|
|
@@ -827,6 +1051,99 @@ class AuthorizationApi {
|
|
|
827
1051
|
);
|
|
828
1052
|
}
|
|
829
1053
|
|
|
1054
|
+
/**
|
|
1055
|
+
* Add an access control policy for a specified resource target and subject
|
|
1056
|
+
*
|
|
1057
|
+
* @param {String} targetName The domain:entity:action target to which the policy will be applied
|
|
1058
|
+
* @param {Object} body Access control policy
|
|
1059
|
+
* postAuthorizationPoliciesTarget is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1060
|
+
*/
|
|
1061
|
+
postAuthorizationPoliciesTarget(targetName, body) {
|
|
1062
|
+
// verify the required parameter 'targetName' is set
|
|
1063
|
+
if (targetName === undefined || targetName === null) {
|
|
1064
|
+
throw 'Missing the required parameter "targetName" when calling postAuthorizationPoliciesTarget';
|
|
1065
|
+
}
|
|
1066
|
+
// verify the required parameter 'body' is set
|
|
1067
|
+
if (body === undefined || body === null) {
|
|
1068
|
+
throw 'Missing the required parameter "body" when calling postAuthorizationPoliciesTarget';
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
return this.apiClient.callApi(
|
|
1072
|
+
'/api/v2/authorization/policies/targets/{targetName}',
|
|
1073
|
+
'POST',
|
|
1074
|
+
{ 'targetName': targetName },
|
|
1075
|
+
{ },
|
|
1076
|
+
{ },
|
|
1077
|
+
{ },
|
|
1078
|
+
body,
|
|
1079
|
+
['PureCloud OAuth'],
|
|
1080
|
+
['application/json'],
|
|
1081
|
+
['application/json']
|
|
1082
|
+
);
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
/**
|
|
1086
|
+
* Validate the conditions and attributes of an access control policy for a specified resource target
|
|
1087
|
+
*
|
|
1088
|
+
* @param {String} targetName The domain:entity:action target to which the policy will be applied
|
|
1089
|
+
* @param {Object} body Access control policy
|
|
1090
|
+
* postAuthorizationPoliciesTargetValidate is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1091
|
+
*/
|
|
1092
|
+
postAuthorizationPoliciesTargetValidate(targetName, body) {
|
|
1093
|
+
// verify the required parameter 'targetName' is set
|
|
1094
|
+
if (targetName === undefined || targetName === null) {
|
|
1095
|
+
throw 'Missing the required parameter "targetName" when calling postAuthorizationPoliciesTargetValidate';
|
|
1096
|
+
}
|
|
1097
|
+
// verify the required parameter 'body' is set
|
|
1098
|
+
if (body === undefined || body === null) {
|
|
1099
|
+
throw 'Missing the required parameter "body" when calling postAuthorizationPoliciesTargetValidate';
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
return this.apiClient.callApi(
|
|
1103
|
+
'/api/v2/authorization/policies/targets/{targetName}/validate',
|
|
1104
|
+
'POST',
|
|
1105
|
+
{ 'targetName': targetName },
|
|
1106
|
+
{ },
|
|
1107
|
+
{ },
|
|
1108
|
+
{ },
|
|
1109
|
+
body,
|
|
1110
|
+
['PureCloud OAuth'],
|
|
1111
|
+
['application/json'],
|
|
1112
|
+
['application/json']
|
|
1113
|
+
);
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
/**
|
|
1117
|
+
* Simulate a request and evaluate the specified policy ID against the provided values
|
|
1118
|
+
*
|
|
1119
|
+
* @param {String} policyId The ID of the policy to test the simulated data against
|
|
1120
|
+
* @param {Object} body A map of attribute names to type and simulated data value
|
|
1121
|
+
* postAuthorizationPolicySimulate is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1122
|
+
*/
|
|
1123
|
+
postAuthorizationPolicySimulate(policyId, body) {
|
|
1124
|
+
// verify the required parameter 'policyId' is set
|
|
1125
|
+
if (policyId === undefined || policyId === null) {
|
|
1126
|
+
throw 'Missing the required parameter "policyId" when calling postAuthorizationPolicySimulate';
|
|
1127
|
+
}
|
|
1128
|
+
// verify the required parameter 'body' is set
|
|
1129
|
+
if (body === undefined || body === null) {
|
|
1130
|
+
throw 'Missing the required parameter "body" when calling postAuthorizationPolicySimulate';
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
return this.apiClient.callApi(
|
|
1134
|
+
'/api/v2/authorization/policies/{policyId}/simulate',
|
|
1135
|
+
'POST',
|
|
1136
|
+
{ 'policyId': policyId },
|
|
1137
|
+
{ },
|
|
1138
|
+
{ },
|
|
1139
|
+
{ },
|
|
1140
|
+
body,
|
|
1141
|
+
['PureCloud OAuth'],
|
|
1142
|
+
['application/json'],
|
|
1143
|
+
['application/json']
|
|
1144
|
+
);
|
|
1145
|
+
}
|
|
1146
|
+
|
|
830
1147
|
/**
|
|
831
1148
|
* Bulk-grant subjects and divisions with an organization role.
|
|
832
1149
|
*
|
|
@@ -1112,6 +1429,68 @@ class AuthorizationApi {
|
|
|
1112
1429
|
);
|
|
1113
1430
|
}
|
|
1114
1431
|
|
|
1432
|
+
/**
|
|
1433
|
+
* Add an access control policy for a specified resource target and subject, overwriting any existing policy
|
|
1434
|
+
*
|
|
1435
|
+
* @param {String} targetName The domain:entity:action target to which the policy will be applied
|
|
1436
|
+
* @param {Object} body Access control policy
|
|
1437
|
+
* putAuthorizationPoliciesTarget is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1438
|
+
*/
|
|
1439
|
+
putAuthorizationPoliciesTarget(targetName, body) {
|
|
1440
|
+
// verify the required parameter 'targetName' is set
|
|
1441
|
+
if (targetName === undefined || targetName === null) {
|
|
1442
|
+
throw 'Missing the required parameter "targetName" when calling putAuthorizationPoliciesTarget';
|
|
1443
|
+
}
|
|
1444
|
+
// verify the required parameter 'body' is set
|
|
1445
|
+
if (body === undefined || body === null) {
|
|
1446
|
+
throw 'Missing the required parameter "body" when calling putAuthorizationPoliciesTarget';
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
return this.apiClient.callApi(
|
|
1450
|
+
'/api/v2/authorization/policies/targets/{targetName}',
|
|
1451
|
+
'PUT',
|
|
1452
|
+
{ 'targetName': targetName },
|
|
1453
|
+
{ },
|
|
1454
|
+
{ },
|
|
1455
|
+
{ },
|
|
1456
|
+
body,
|
|
1457
|
+
['PureCloud OAuth'],
|
|
1458
|
+
['application/json'],
|
|
1459
|
+
['application/json']
|
|
1460
|
+
);
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
/**
|
|
1464
|
+
* Update an access control policy with a given ID
|
|
1465
|
+
*
|
|
1466
|
+
* @param {String} policyId The ID of the policy to update
|
|
1467
|
+
* @param {Object} body Access control policy
|
|
1468
|
+
* putAuthorizationPolicy is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1469
|
+
*/
|
|
1470
|
+
putAuthorizationPolicy(policyId, body) {
|
|
1471
|
+
// verify the required parameter 'policyId' is set
|
|
1472
|
+
if (policyId === undefined || policyId === null) {
|
|
1473
|
+
throw 'Missing the required parameter "policyId" when calling putAuthorizationPolicy';
|
|
1474
|
+
}
|
|
1475
|
+
// verify the required parameter 'body' is set
|
|
1476
|
+
if (body === undefined || body === null) {
|
|
1477
|
+
throw 'Missing the required parameter "body" when calling putAuthorizationPolicy';
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
return this.apiClient.callApi(
|
|
1481
|
+
'/api/v2/authorization/policies/{policyId}',
|
|
1482
|
+
'PUT',
|
|
1483
|
+
{ 'policyId': policyId },
|
|
1484
|
+
{ },
|
|
1485
|
+
{ },
|
|
1486
|
+
{ },
|
|
1487
|
+
body,
|
|
1488
|
+
['PureCloud OAuth'],
|
|
1489
|
+
['application/json'],
|
|
1490
|
+
['application/json']
|
|
1491
|
+
);
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1115
1494
|
/**
|
|
1116
1495
|
* Update an organization role.
|
|
1117
1496
|
* Update
|
|
@@ -5,7 +5,7 @@ class ChatApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Chat service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 217.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -479,7 +479,6 @@ class ChatApi {
|
|
|
479
479
|
* Get a user's chat settings
|
|
480
480
|
*
|
|
481
481
|
* @param {String} userId User ID
|
|
482
|
-
* getChatsUserSettings is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
483
482
|
*/
|
|
484
483
|
getChatsUserSettings(userId) {
|
|
485
484
|
// verify the required parameter 'userId' is set
|
|
@@ -504,7 +503,6 @@ class ChatApi {
|
|
|
504
503
|
/**
|
|
505
504
|
* Get a user's chat settings
|
|
506
505
|
*
|
|
507
|
-
* getChatsUsersMeSettings is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
508
506
|
*/
|
|
509
507
|
getChatsUsersMeSettings() {
|
|
510
508
|
|
|
@@ -652,7 +650,6 @@ class ChatApi {
|
|
|
652
650
|
*
|
|
653
651
|
* @param {String} userId User ID
|
|
654
652
|
* @param {Object} body
|
|
655
|
-
* patchChatsUserSettings is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
656
653
|
*/
|
|
657
654
|
patchChatsUserSettings(userId, body) {
|
|
658
655
|
// verify the required parameter 'userId' is set
|
|
@@ -682,7 +679,6 @@ class ChatApi {
|
|
|
682
679
|
* Update a user's chat settings
|
|
683
680
|
*
|
|
684
681
|
* @param {Object} body
|
|
685
|
-
* patchChatsUsersMeSettings is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
686
682
|
*/
|
|
687
683
|
patchChatsUsersMeSettings(body) {
|
|
688
684
|
// verify the required parameter 'body' is set
|