-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathactivity.py
More file actions
39 lines (25 loc) · 1.3 KB
/
activity.py
File metadata and controls
39 lines (25 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Dict, Optional
from datetime import datetime
from pydantic import Field as FieldInfo
from .._models import BaseModel
from .recipient import Recipient
__all__ = ["Activity"]
class Activity(BaseModel):
"""An activity associated with a workflow trigger request.
Messages produced after a [batch step](/designing-workflows/batch-function) can be associated with one or more activities. Non-batched messages will always be associated with a single activity.
"""
id: Optional[str] = None
"""Unique identifier for the activity."""
api_typename: Optional[str] = FieldInfo(alias="__typename", default=None)
"""The typename of the schema."""
actor: Optional[Recipient] = None
"""A recipient of a notification, which is either a user or an object."""
data: Optional[Dict[str, object]] = None
"""The workflow trigger `data` payload associated with the activity."""
inserted_at: Optional[datetime] = None
"""Timestamp when the activity was created."""
recipient: Optional[Recipient] = None
"""A recipient of a notification, which is either a user or an object."""
updated_at: Optional[datetime] = None
"""Timestamp when the activity was last updated."""