Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 320e44c

Browse files
angiurgiuAndrei GiurgiuLuChen-Microsoft
authored
[ACS Chat] [Rest API] Added chat thread metadata and participant meta… (Azure#24837)
* [ACS Chat] [Rest API] Added chat thread metadata and participant metadata. (Azure#24243) * Updating ACS Chat swagger with Chat thread and participant metadata. * Fixed swagger version. * Fixed swagger version. * Re-added data retention policy to the swagger. * Update communicationserviceschat.json - changed metadata from string to dictionary * Update communicationserviceschat.json * Update communicationserviceschat.json Corrected size limitations - should be 1k, not 2k * Update communicationserviceschat.json Added metadata to patch thread request * Update communicationserviceschat.json --------- Co-authored-by: Andrei Giurgiu <[email protected]> * remove data retention from 2023-07-01 --------- Co-authored-by: Andrei Giurgiu <[email protected]> Co-authored-by: Lu Chen <[email protected]>
1 parent 1873e68 commit 320e44c

File tree

3 files changed

+27
-64
lines changed

3 files changed

+27
-64
lines changed

specification/communication/data-plane/Chat/preview/2023-07-01-preview/communicationserviceschat.json

Lines changed: 26 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,6 +1355,13 @@
13551355
"description": "Time from which the chat history is shared with the participant. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`.",
13561356
"type": "string",
13571357
"example": "2020-10-30T10:50:50Z"
1358+
},
1359+
"metadata": {
1360+
"description": "Contextual metadata for the chat participant. The metadata consists of name/value pairs. The total size of all metadata pairs can be up to 1KB in size.",
1361+
"type": "object",
1362+
"additionalProperties": {
1363+
"type": "string"
1364+
}
13581365
}
13591366
}
13601367
},
@@ -1619,8 +1626,12 @@
16191626
"$ref": "#/definitions/ChatParticipant"
16201627
}
16211628
},
1622-
"retentionPolicy": {
1623-
"$ref": "#/definitions/ChatRetentionPolicy"
1629+
"metadata": {
1630+
"description": "Contextual metadata for the thread. The metadata consists of name/value pairs. The total size of all metadata pairs can be up to 1KB in size.",
1631+
"type": "object",
1632+
"additionalProperties": {
1633+
"type": "string"
1634+
}
16241635
}
16251636
}
16261637
},
@@ -1659,8 +1670,12 @@
16591670
"type": "string",
16601671
"example": "2020-10-30T10:50:50Z"
16611672
},
1662-
"retentionPolicy": {
1663-
"$ref": "#/definitions/ChatRetentionPolicy"
1673+
"metadata": {
1674+
"description": "Contextual metadata for the thread. The metadata consists of name/value pairs. The total size of all metadata pairs can be up to 1KB in size.",
1675+
"type": "object",
1676+
"additionalProperties": {
1677+
"type": "string"
1678+
}
16641679
}
16651680
}
16661681
},
@@ -1743,6 +1758,13 @@
17431758
"description": "Chat thread topic.",
17441759
"type": "string",
17451760
"example": "Lunch Thread"
1761+
},
1762+
"metadata": {
1763+
"description": "Contextual metadata for the thread. The metadata consists of name/value pairs. The total size of all metadata pairs can be up to 1KB in size.",
1764+
"type": "object",
1765+
"additionalProperties": {
1766+
"type": "string"
1767+
}
17461768
}
17471769
}
17481770
},
@@ -1756,53 +1778,6 @@
17561778
"example": "Bob Admin"
17571779
}
17581780
}
1759-
},
1760-
"ChatRetentionPolicy": {
1761-
"description": "Data retention policy for auto deletion. It's not updatable after creation.",
1762-
"type": "object",
1763-
"discriminator": "kind",
1764-
"properties": {
1765-
"kind": {
1766-
"description": "Retention Policy Type",
1767-
"enum": [
1768-
"threadCreationDate"
1769-
],
1770-
"type": "string",
1771-
"x-ms-enum": {
1772-
"name": "RetentionPolicyKind",
1773-
"modelAsString": true,
1774-
"values": [
1775-
{
1776-
"value": "threadCreationDate",
1777-
"description": "Thread retention policy based on thread creation date."
1778-
}
1779-
]
1780-
}
1781-
}
1782-
},
1783-
"required": [
1784-
"kind"
1785-
]
1786-
},
1787-
"ThreadCreationDateRetentionPolicy": {
1788-
"description": "Thread retention policy based on thread creation date.",
1789-
"type": "object",
1790-
"x-ms-discriminator-value": "threadCreationDate",
1791-
"allOf": [
1792-
{
1793-
"$ref": "#/definitions/ChatRetentionPolicy"
1794-
}
1795-
],
1796-
"properties": {
1797-
"deleteThreadAfterDays": {
1798-
"type": "integer",
1799-
"format": "int32",
1800-
"description": "Indicates how many days after the thread creation the thread will be deleted. Only 90 is accepted for now."
1801-
}
1802-
},
1803-
"required": [
1804-
"deleteThreadAfterDays"
1805-
]
18061781
}
18071782
},
18081783
"parameters": {

specification/communication/data-plane/Chat/preview/2023-07-01-preview/examples/Threads_CreateChatThread.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@
4141
},
4242
"displayName": "Peter"
4343
}
44-
],
45-
"retentionPolicy": {
46-
"kind": "threadCreationDate",
47-
"deleteThreadAfterDays": 90
48-
}
44+
]
4945
}
5046
},
5147
"responses": {
@@ -63,10 +59,6 @@
6359
"communicationUser": {
6460
"id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_c94ff260-162d-46d6-94fd-e79f4d213715"
6561
}
66-
},
67-
"retentionPolicy": {
68-
"kind": "threadCreationDate",
69-
"deleteThreadAfterDays": 90
7062
}
7163
},
7264
"invalidParticipants": [

specification/communication/data-plane/Chat/preview/2023-07-01-preview/examples/Threads_GetChatThread.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
"id": "19:uni01_zbnh3nt2dfuffezc3sox7dog7wfhk6y5qe2rwlnfhlhdzirihdpq@thread.v2",
1111
"topic": "Lunch",
1212
"createdOn": "2020-06-06T05:55:41.6460000Z",
13-
"retentionPolicy": {
14-
"kind": "threadCreationDate",
15-
"deleteThreadAfterDays": 90
16-
},
1713
"createdByCommunicationIdentifier": {
1814
"rawId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b",
1915
"communicationUser": {

0 commit comments

Comments
 (0)