Skip to content

Commit b3837a7

Browse files
Merge branch 'aws:master' into fix-issue-2328
2 parents a7f7fa1 + 8c8a713 commit b3837a7

File tree

19 files changed

+586
-49
lines changed

19 files changed

+586
-49
lines changed

.changes/3.224.4

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[
2+
{
3+
"type": "api-change",
4+
"category": "Connect",
5+
"description": "This release adds a new API, GetCurrentUserData, which returns real-time details about users' current activity."
6+
},
7+
{
8+
"type": "api-change",
9+
"category": "ChimeSDKMessaging",
10+
"description": "This release adds support for searching channels by members via the SearchChannels API, removes required restrictions for Name and Mode in UpdateChannel API and enhances CreateChannel API by exposing member and moderator list as well as channel id as optional parameters."
11+
}
12+
]

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# CHANGELOG
22

3+
## 3.224.4 - 2022-06-06
4+
5+
* `Aws\ChimeSDKMessaging` - This release adds support for searching channels by members via the SearchChannels API, removes required restrictions for Name and Mode in UpdateChannel API and enhances CreateChannel API by exposing member and moderator list as well as channel id as optional parameters.
6+
* `Aws\Connect` - This release adds a new API, GetCurrentUserData, which returns real-time details about users' current activity.
7+
38
## 3.224.3 - 2022-06-02
49

510
* `Aws\ApplicationInsights` - Provide Account Level onboarding support through CFN/CLI

src/ChimeSDKMessaging/ChimeSDKMessagingClient.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@
8181
* @method \GuzzleHttp\Promise\Promise putChannelMembershipPreferencesAsync(array $args = [])
8282
* @method \Aws\Result redactChannelMessage(array $args = [])
8383
* @method \GuzzleHttp\Promise\Promise redactChannelMessageAsync(array $args = [])
84+
* @method \Aws\Result searchChannels(array $args = [])
85+
* @method \GuzzleHttp\Promise\Promise searchChannelsAsync(array $args = [])
8486
* @method \Aws\Result sendChannelMessage(array $args = [])
8587
* @method \GuzzleHttp\Promise\Promise sendChannelMessageAsync(array $args = [])
8688
* @method \Aws\Result tagResource(array $args = [])

src/Connect/ConnectClient.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@
137137
* @method \GuzzleHttp\Promise\Promise getContactAttributesAsync(array $args = [])
138138
* @method \Aws\Result getCurrentMetricData(array $args = [])
139139
* @method \GuzzleHttp\Promise\Promise getCurrentMetricDataAsync(array $args = [])
140+
* @method \Aws\Result getCurrentUserData(array $args = [])
141+
* @method \GuzzleHttp\Promise\Promise getCurrentUserDataAsync(array $args = [])
140142
* @method \Aws\Result getFederationToken(array $args = [])
141143
* @method \GuzzleHttp\Promise\Promise getFederationTokenAsync(array $args = [])
142144
* @method \Aws\Result getMetricData(array $args = [])

src/Sdk.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@
617617
*/
618618
class Sdk
619619
{
620-
const VERSION = '3.224.3';
620+
const VERSION = '3.224.4';
621621

622622
/** @var array Arguments for creating clients */
623623
private $args;

src/data/chime-sdk-messaging/2021-05-15/api-2.json

Lines changed: 113 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,25 @@
699699
},
700700
"input":{"shape":"RedactChannelMessageRequest"},
701701
"output":{"shape":"RedactChannelMessageResponse"},
702+
"errors":[
703+
{"shape":"BadRequestException"},
704+
{"shape":"ForbiddenException"},
705+
{"shape":"ConflictException"},
706+
{"shape":"UnauthorizedClientException"},
707+
{"shape":"ThrottledClientException"},
708+
{"shape":"ServiceUnavailableException"},
709+
{"shape":"ServiceFailureException"}
710+
]
711+
},
712+
"SearchChannels":{
713+
"name":"SearchChannels",
714+
"http":{
715+
"method":"POST",
716+
"requestUri":"/channels?operation=search",
717+
"responseCode":200
718+
},
719+
"input":{"shape":"SearchChannelsRequest"},
720+
"output":{"shape":"SearchChannelsResponse"},
702721
"errors":[
703722
{"shape":"BadRequestException"},
704723
{"shape":"ForbiddenException"},
@@ -1043,6 +1062,19 @@
10431062
"type":"list",
10441063
"member":{"shape":"ChannelFlowSummary"}
10451064
},
1065+
"ChannelId":{
1066+
"type":"string",
1067+
"max":64,
1068+
"min":1,
1069+
"pattern":"[A-Za-z0-9]([A-Za-z0-9\\:\\-\\_\\.\\@]{0,62}[A-Za-z0-9])?",
1070+
"sensitive":true
1071+
},
1072+
"ChannelMemberArns":{
1073+
"type":"list",
1074+
"member":{"shape":"ChimeArn"},
1075+
"max":10,
1076+
"min":1
1077+
},
10461078
"ChannelMembership":{
10471079
"type":"structure",
10481080
"members":{
@@ -1193,6 +1225,12 @@
11931225
"CreatedBy":{"shape":"Identity"}
11941226
}
11951227
},
1228+
"ChannelModeratorArns":{
1229+
"type":"list",
1230+
"member":{"shape":"ChimeArn"},
1231+
"max":10,
1232+
"min":1
1233+
},
11961234
"ChannelModeratorSummary":{
11971235
"type":"structure",
11981236
"members":{
@@ -1385,7 +1423,10 @@
13851423
"shape":"ChimeArn",
13861424
"location":"header",
13871425
"locationName":"x-amz-chime-bearer"
1388-
}
1426+
},
1427+
"ChannelId":{"shape":"ChannelId"},
1428+
"MemberArns":{"shape":"ChannelMemberArns"},
1429+
"ModeratorArns":{"shape":"ChannelModeratorArns"}
13891430
}
13901431
},
13911432
"CreateChannelResponse":{
@@ -2511,6 +2552,77 @@
25112552
"pattern":"[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*",
25122553
"sensitive":true
25132554
},
2555+
"SearchChannelsRequest":{
2556+
"type":"structure",
2557+
"required":["Fields"],
2558+
"members":{
2559+
"ChimeBearer":{
2560+
"shape":"ChimeArn",
2561+
"location":"header",
2562+
"locationName":"x-amz-chime-bearer"
2563+
},
2564+
"Fields":{"shape":"SearchFields"},
2565+
"MaxResults":{
2566+
"shape":"MaxResults",
2567+
"location":"querystring",
2568+
"locationName":"max-results"
2569+
},
2570+
"NextToken":{
2571+
"shape":"NextToken",
2572+
"location":"querystring",
2573+
"locationName":"next-token"
2574+
}
2575+
}
2576+
},
2577+
"SearchChannelsResponse":{
2578+
"type":"structure",
2579+
"members":{
2580+
"Channels":{"shape":"ChannelSummaryList"},
2581+
"NextToken":{"shape":"NextToken"}
2582+
}
2583+
},
2584+
"SearchField":{
2585+
"type":"structure",
2586+
"required":[
2587+
"Key",
2588+
"Values",
2589+
"Operator"
2590+
],
2591+
"members":{
2592+
"Key":{"shape":"SearchFieldKey"},
2593+
"Values":{"shape":"SearchFieldValues"},
2594+
"Operator":{"shape":"SearchFieldOperator"}
2595+
}
2596+
},
2597+
"SearchFieldKey":{
2598+
"type":"string",
2599+
"enum":["MEMBERS"]
2600+
},
2601+
"SearchFieldOperator":{
2602+
"type":"string",
2603+
"enum":[
2604+
"EQUALS",
2605+
"INCLUDES"
2606+
]
2607+
},
2608+
"SearchFieldValue":{
2609+
"type":"string",
2610+
"max":512,
2611+
"min":1,
2612+
"pattern":"[\\s\\S]*"
2613+
},
2614+
"SearchFieldValues":{
2615+
"type":"list",
2616+
"member":{"shape":"SearchFieldValue"},
2617+
"max":20,
2618+
"min":1
2619+
},
2620+
"SearchFields":{
2621+
"type":"list",
2622+
"member":{"shape":"SearchField"},
2623+
"max":20,
2624+
"min":1
2625+
},
25142626
"SendChannelMessageRequest":{
25152627
"type":"structure",
25162628
"required":[
@@ -2749,8 +2861,6 @@
27492861
"type":"structure",
27502862
"required":[
27512863
"ChannelArn",
2752-
"Name",
2753-
"Mode",
27542864
"ChimeBearer"
27552865
],
27562866
"members":{

src/data/chime-sdk-messaging/2021-05-15/api-2.json.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/data/chime-sdk-messaging/2021-05-15/docs-2.json

Lines changed: 81 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"version": "2.0",
3-
"service": "<p>The Amazon Chime SDK Messaging APIs in this section allow software developers to send and receive messages in custom messaging applications. These APIs depend on the frameworks provided by the Amazon Chime SDK Identity APIs. For more information about the messaging APIs, see <a href=\"https://docs.aws.amazon.com/chime/latest/APIReference/API_Operations_Amazon_Chime_SDK_Messaging\">Amazon Chime SDK messaging</a> </p>",
3+
"service": "<p>The Amazon Chime SDK Messaging APIs in this section allow software developers to send and receive messages in custom messaging applications. These APIs depend on the frameworks provided by the Amazon Chime SDK Identity APIs. For more information about the messaging APIs, see <a href=\"https://docs.aws.amazon.com/chime/latest/APIReference/API_Operations_Amazon_Chime_SDK_Messaging.html\">Amazon Chime SDK messaging</a>.</p>",
44
"operations": {
55
"AssociateChannelFlow": "<p>Associates a channel flow with a channel. Once associated, all messages to that channel go through channel flow processors. To stop processing, use the <code>DisassociateChannelFlow</code> API.</p> <note> <p>Only administrators or channel moderators can associate a channel flow. The <code>x-amz-chime-bearer</code> request header is mandatory. Use the <code>AppInstanceUserArn</code> of the user that makes the API call as the value in the header.</p> </note>",
66
"BatchCreateChannelMembership": "<p>Adds a specified number of users to a channel. </p>",
@@ -40,6 +40,7 @@
4040
"ListTagsForResource": "<p>Lists the tags applied to an Amazon Chime SDK messaging resource.</p>",
4141
"PutChannelMembershipPreferences": "<p>Sets the membership preferences of an <code>AppInstanceUser</code> for the specified channel. The <code>AppInstanceUser</code> must be a member of the channel. Only the <code>AppInstanceUser</code> who owns the membership can set preferences. Users in the <code>AppInstanceAdmin</code> and channel moderator roles can't set preferences for other users. Banned users can't set membership preferences for the channel from which they are banned.</p>",
4242
"RedactChannelMessage": "<p>Redacts message content, but not metadata. The message exists in the back end, but the action returns null content, and the state shows as redacted.</p> <note> <p>The <code>x-amz-chime-bearer</code> request header is mandatory. Use the <code>AppInstanceUserArn</code> of the user that makes the API call as the value in the header.</p> </note>",
43+
"SearchChannels": "<p>Allows an <code>AppInstanceUser</code> to search the channels that they belong to. The <code>AppInstanceUser</code> can search by membership or external ID. An <code>AppInstanceAdmin</code> can search across all channels within the <code>AppInstance</code>.</p>",
4344
"SendChannelMessage": "<p>Sends a message to a particular channel that the member is a part of.</p> <note> <p>The <code>x-amz-chime-bearer</code> request header is mandatory. Use the <code>AppInstanceUserArn</code> of the user that makes the API call as the value in the header.</p> <p>Also, <code>STANDARD</code> messages can contain 4KB of data and the 1KB of metadata. <code>CONTROL</code> messages can contain 30 bytes of data and no metadata.</p> </note>",
4445
"TagResource": "<p>Applies the specified tags to the specified Amazon Chime SDK messaging resource.</p>",
4546
"UntagResource": "<p>Removes the specified tags from the specified Amazon Chime SDK messaging resource.</p>",
@@ -176,6 +177,18 @@
176177
"ListChannelFlowsResponse$ChannelFlows": "<p>The information about each channel flow.</p>"
177178
}
178179
},
180+
"ChannelId": {
181+
"base": null,
182+
"refs": {
183+
"CreateChannelRequest$ChannelId": "<p>The ID of the channel in the request.</p>"
184+
}
185+
},
186+
"ChannelMemberArns": {
187+
"base": null,
188+
"refs": {
189+
"CreateChannelRequest$MemberArns": "<p>The ARNs of the channel members in the request.</p>"
190+
}
191+
},
179192
"ChannelMembership": {
180193
"base": "<p>The details of a channel member.</p>",
181194
"refs": {
@@ -192,7 +205,7 @@
192205
"ChannelMembershipForAppInstanceUserSummaryList": {
193206
"base": null,
194207
"refs": {
195-
"ListChannelMembershipsForAppInstanceUserResponse$ChannelMemberships": "<p>The token passed by previous API calls until all requested users are returned.</p>"
208+
"ListChannelMembershipsForAppInstanceUserResponse$ChannelMemberships": "<p>The information for the requested channel memberships.</p>"
196209
}
197210
},
198211
"ChannelMembershipPreferences": {
@@ -310,6 +323,12 @@
310323
"DescribeChannelModeratorResponse$ChannelModerator": "<p>The details of the channel moderator.</p>"
311324
}
312325
},
326+
"ChannelModeratorArns": {
327+
"base": null,
328+
"refs": {
329+
"CreateChannelRequest$ModeratorArns": "<p>The ARNs of the channel moderators in the request.</p>"
330+
}
331+
},
313332
"ChannelModeratorSummary": {
314333
"base": "<p>Summary of the details of a <code>ChannelModerator</code>.</p>",
315334
"refs": {
@@ -343,7 +362,8 @@
343362
"ChannelSummaryList": {
344363
"base": null,
345364
"refs": {
346-
"ListChannelsResponse$Channels": "<p>The information about each channel.</p>"
365+
"ListChannelsResponse$Channels": "<p>The information about each channel.</p>",
366+
"SearchChannelsResponse$Channels": "<p>A list of the channels in the request.</p>"
347367
}
348368
},
349369
"ChimeArn": {
@@ -364,9 +384,11 @@
364384
"ChannelFlowCallbackRequest$ChannelArn": "<p>The ARN of the channel.</p>",
365385
"ChannelFlowCallbackResponse$ChannelArn": "<p>The ARN of the channel.</p>",
366386
"ChannelFlowSummary$ChannelFlowArn": "<p>The ARN of the channel flow.</p>",
387+
"ChannelMemberArns$member": null,
367388
"ChannelMembership$ChannelArn": "<p>The ARN of the member's channel.</p>",
368389
"ChannelMessage$ChannelArn": "<p>The ARN of the channel.</p>",
369390
"ChannelModerator$ChannelArn": "<p>The ARN of the moderator's channel.</p>",
391+
"ChannelModeratorArns$member": null,
370392
"ChannelSummary$ChannelArn": "<p>The ARN of the channel.</p>",
371393
"CreateChannelBanRequest$ChannelArn": "<p>The ARN of the ban request.</p>",
372394
"CreateChannelBanRequest$MemberArn": "<p>The <code>AppInstanceUserArn</code> of the member being banned.</p>",
@@ -458,6 +480,7 @@
458480
"RedactChannelMessageRequest$ChannelArn": "<p>The ARN of the channel containing the messages that you want to redact.</p>",
459481
"RedactChannelMessageRequest$ChimeBearer": "<p>The <code>AppInstanceUserArn</code> of the user that makes the API call.</p>",
460482
"RedactChannelMessageResponse$ChannelArn": "<p>The ARN of the channel containing the messages that you want to redact.</p>",
483+
"SearchChannelsRequest$ChimeBearer": "<p>The <code>AppInstanceUserArn</code> of the user making the API call.</p>",
461484
"SendChannelMessageRequest$ChannelArn": "<p>The ARN of the channel.</p>",
462485
"SendChannelMessageRequest$ChimeBearer": "<p>The <code>AppInstanceUserArn</code> of the user that makes the API call.</p>",
463486
"SendChannelMessageResponse$ChannelArn": "<p>The ARN of the channel.</p>",
@@ -676,7 +699,7 @@
676699
"FilterRule": {
677700
"base": null,
678701
"refs": {
679-
"PushNotificationPreferences$FilterRule": "<p>The simple JSON object used to send a subset of a push notification to the requsted member.</p>"
702+
"PushNotificationPreferences$FilterRule": "<p>The simple JSON object used to send a subset of a push notification to the requested member.</p>"
680703
}
681704
},
682705
"ForbiddenException": {
@@ -743,9 +766,9 @@
743766
"CreateChannelBanResponse$Member": "<p>The <code>ChannelArn</code> and <code>BannedIdentity</code> of the member in the ban response.</p>",
744767
"CreateChannelMembershipResponse$Member": "<p>The ARN and metadata of the member being added.</p>",
745768
"CreateChannelModeratorResponse$ChannelModerator": "<p>The ARNs of the channel and the moderator.</p>",
746-
"GetChannelMembershipPreferencesResponse$Member": null,
769+
"GetChannelMembershipPreferencesResponse$Member": "<p>The details of a user.</p>",
747770
"Members$member": null,
748-
"PutChannelMembershipPreferencesResponse$Member": null
771+
"PutChannelMembershipPreferencesResponse$Member": "<p>The details of a user.</p>"
749772
}
750773
},
751774
"InvocationType": {
@@ -877,7 +900,8 @@
877900
"ListChannelModeratorsRequest$MaxResults": "<p>The maximum number of moderators that you want returned.</p>",
878901
"ListChannelsAssociatedWithChannelFlowRequest$MaxResults": "<p>The maximum number of channels that you want to return.</p>",
879902
"ListChannelsModeratedByAppInstanceUserRequest$MaxResults": "<p>The maximum number of channels in the request.</p>",
880-
"ListChannelsRequest$MaxResults": "<p>The maximum number of channels that you want to return.</p>"
903+
"ListChannelsRequest$MaxResults": "<p>The maximum number of channels that you want to return.</p>",
904+
"SearchChannelsRequest$MaxResults": "<p>The maximum number of channels that you want returned.</p>"
881905
}
882906
},
883907
"MemberArns": {
@@ -982,7 +1006,9 @@
9821006
"ListChannelsModeratedByAppInstanceUserRequest$NextToken": "<p>The token returned from previous API requests until the number of channels moderated by the user is reached.</p>",
9831007
"ListChannelsModeratedByAppInstanceUserResponse$NextToken": "<p>The token returned from previous API requests until the number of channels moderated by the user is reached.</p>",
9841008
"ListChannelsRequest$NextToken": "<p>The token passed by previous API calls until all requested channels are returned.</p>",
985-
"ListChannelsResponse$NextToken": "<p>The token returned from previous API requests until the number of channels is reached.</p>"
1009+
"ListChannelsResponse$NextToken": "<p>The token returned from previous API requests until the number of channels is reached.</p>",
1010+
"SearchChannelsRequest$NextToken": "<p>The token returned from previous API requests until the number of channels is reached.</p>",
1011+
"SearchChannelsResponse$NextToken": "<p>The token returned from previous API responses until the number of channels is reached.</p>"
9861012
}
9871013
},
9881014
"NonEmptyContent": {
@@ -1103,6 +1129,52 @@
11031129
"Identity$Name": "<p>The name in an Identity.</p>"
11041130
}
11051131
},
1132+
"SearchChannelsRequest": {
1133+
"base": null,
1134+
"refs": {
1135+
}
1136+
},
1137+
"SearchChannelsResponse": {
1138+
"base": null,
1139+
"refs": {
1140+
}
1141+
},
1142+
"SearchField": {
1143+
"base": "<p>A <code>Field</code> of the channel that you want to search.</p>",
1144+
"refs": {
1145+
"SearchFields$member": null
1146+
}
1147+
},
1148+
"SearchFieldKey": {
1149+
"base": null,
1150+
"refs": {
1151+
"SearchField$Key": "<p>An <code>enum</code> value that indicates the key to search the channel on. <code>MEMBERS</code> allows you to search channels based on memberships. You can use it with the <code>EQUALS</code> operator to get channels whose memberships are equal to the specified values, and with the <code>INCLUDES</code> operator to get channels whose memberships include the specified values.</p>"
1152+
}
1153+
},
1154+
"SearchFieldOperator": {
1155+
"base": null,
1156+
"refs": {
1157+
"SearchField$Operator": "<p>The operator used to compare field values, currently <code>EQUALS</code> or <code>INCLUDES</code>. Use the <code>EQUALS</code> operator to find channels whose memberships equal the specified values. Use the <code>INCLUDES</code> operator to find channels whose memberships include the specified values.</p>"
1158+
}
1159+
},
1160+
"SearchFieldValue": {
1161+
"base": null,
1162+
"refs": {
1163+
"SearchFieldValues$member": null
1164+
}
1165+
},
1166+
"SearchFieldValues": {
1167+
"base": null,
1168+
"refs": {
1169+
"SearchField$Values": "<p>The values that you want to search for, a list of strings. The values must be <code>AppInstanceUserArns</code> specified as a list of strings.</p> <note> <p>This operation isn't supported for <code>AppInstanceUsers</code> with large number of memberships.</p> </note>"
1170+
}
1171+
},
1172+
"SearchFields": {
1173+
"base": null,
1174+
"refs": {
1175+
"SearchChannelsRequest$Fields": "<p>A list of the <code>Field</code> objects in the channel being searched.</p>"
1176+
}
1177+
},
11061178
"SendChannelMessageRequest": {
11071179
"base": null,
11081180
"refs": {
@@ -1197,7 +1269,7 @@
11971269
"Timestamp": {
11981270
"base": null,
11991271
"refs": {
1200-
"AppInstanceUserMembershipSummary$ReadMarkerTimestamp": "<p>The time at which a message was last read.</p>",
1272+
"AppInstanceUserMembershipSummary$ReadMarkerTimestamp": "<p>The time at which an <code>AppInstanceUser</code> last marked a channel as read.</p>",
12011273
"Channel$CreatedTimestamp": "<p>The time at which the <code>AppInstanceUser</code> created the channel.</p>",
12021274
"Channel$LastMessageTimestamp": "<p>The time at which a member sent the last message in the channel.</p>",
12031275
"Channel$LastUpdatedTimestamp": "<p>The time at which a channel was last updated.</p>",

0 commit comments

Comments
 (0)