Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1355,6 +1355,13 @@
"description": "Time from which the chat history is shared with the participant. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`.",
"type": "string",
"example": "2020-10-30T10:50:50Z"
},
"metadata": {
"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.",
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
Expand Down Expand Up @@ -1619,8 +1626,12 @@
"$ref": "#/definitions/ChatParticipant"
}
},
"retentionPolicy": {
"$ref": "#/definitions/ChatRetentionPolicy"
"metadata": {
"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.",
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
Expand Down Expand Up @@ -1659,8 +1670,12 @@
"type": "string",
"example": "2020-10-30T10:50:50Z"
},
"retentionPolicy": {
"$ref": "#/definitions/ChatRetentionPolicy"
"metadata": {
"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.",
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
Expand Down Expand Up @@ -1711,9 +1726,6 @@
"type": "string",
"readOnly": true,
"example": "2020-10-30T10:50:50Z"
},
"retentionPolicy": {
"$ref": "#/definitions/ChatRetentionPolicy"
}
}
},
Expand Down Expand Up @@ -1746,6 +1758,13 @@
"description": "Chat thread topic.",
"type": "string",
"example": "Lunch Thread"
},
"metadata": {
"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.",
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
Expand All @@ -1759,53 +1778,6 @@
"example": "Bob Admin"
}
}
},
"ChatRetentionPolicy": {
"description": "Data retention policy for auto deletion. It's not updatable after creation.",
"type": "object",
"discriminator": "kind",
"properties": {
"kind": {
"description": "Retention Policy Type",
"enum": [
"threadCreationDate"
],
"type": "string",
"x-ms-enum": {
"name": "RetentionPolicyKind",
"modelAsString": true,
"values": [
{
"value": "threadCreationDate",
"description": "Thread retention policy based on thread creation date."
}
]
}
}
},
"required": [
"kind"
]
},
"ThreadCreationDateRetentionPolicy": {
"description": "Thread retention policy based on thread creation date.",
"type": "object",
"x-ms-discriminator-value": "threadCreationDate",
"allOf": [
{
"$ref": "#/definitions/ChatRetentionPolicy"
}
],
"properties": {
"deleteThreadAfterDays": {
"type": "integer",
"format": "int32",
"description": "Indicates how many days after the thread creation the thread will be deleted. Only 90 is accepted for now."
}
},
"required": [
"deleteThreadAfterDays"
]
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@
},
"displayName": "Peter"
}
],
"retentionPolicy": {
"kind": "threadCreationDate",
"deleteThreadAfterDays": 90
}
]
}
},
"responses": {
Expand All @@ -63,10 +59,6 @@
"communicationUser": {
"id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_c94ff260-162d-46d6-94fd-e79f4d213715"
}
},
"retentionPolicy": {
"kind": "threadCreationDate",
"deleteThreadAfterDays": 90
}
},
"invalidParticipants": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
"id": "19:uni01_zbnh3nt2dfuffezc3sox7dog7wfhk6y5qe2rwlnfhlhdzirihdpq@thread.v2",
"topic": "Lunch",
"createdOn": "2020-06-06T05:55:41.6460000Z",
"retentionPolicy": {
"kind": "threadCreationDate",
"deleteThreadAfterDays": 90
},
"createdByCommunicationIdentifier": {
"rawId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b",
"communicationUser": {
Expand Down