|
14 | 14 | "ContentImage", |
15 | 15 | "ContentVideo", |
16 | 16 | "ContentAudio", |
17 | | - "ContentContentNode", |
18 | | - "ContentContentNodeData", |
19 | | - "ContentContentNodeDataText", |
20 | | - "ContentContentNodeDataImage", |
21 | | - "ContentContentNodeDataVideo", |
22 | | - "ContentContentNodeDataAudio", |
| 17 | + "ContentObject", |
| 18 | + "ContentObjectData", |
| 19 | + "ContentObjectDataText", |
| 20 | + "ContentObjectDataImage", |
| 21 | + "ContentObjectDataVideo", |
| 22 | + "ContentObjectDataAudio", |
23 | 23 | "Policy", |
24 | 24 | "PolicyToxicity", |
25 | 25 | "PolicyPersonalInformation", |
@@ -81,10 +81,7 @@ class ContentSubmitParams(TypedDict, total=False): |
81 | 81 | """The meta type of content being moderated""" |
82 | 82 |
|
83 | 83 | policies: Iterable[Policy] |
84 | | - """ |
85 | | - Optionally override the channel policies for this moderation request only |
86 | | - (enterprise). |
87 | | - """ |
| 84 | + """(Enterprise) override the channel policies for this moderation request only.""" |
88 | 85 |
|
89 | 86 |
|
90 | 87 | class ContentText(TypedDict, total=False): |
@@ -115,47 +112,47 @@ class ContentAudio(TypedDict, total=False): |
115 | 112 | """The URL of the audio content""" |
116 | 113 |
|
117 | 114 |
|
118 | | -class ContentContentNodeDataText(TypedDict, total=False): |
| 115 | +class ContentObjectDataText(TypedDict, total=False): |
119 | 116 | text: Required[str] |
120 | 117 | """The content text""" |
121 | 118 |
|
122 | 119 | type: Required[Literal["text"]] |
123 | 120 |
|
124 | 121 |
|
125 | | -class ContentContentNodeDataImage(TypedDict, total=False): |
| 122 | +class ContentObjectDataImage(TypedDict, total=False): |
126 | 123 | type: Required[Literal["image"]] |
127 | 124 |
|
128 | 125 | url: Required[str] |
129 | 126 | """A public URL of the image content""" |
130 | 127 |
|
131 | 128 |
|
132 | | -class ContentContentNodeDataVideo(TypedDict, total=False): |
| 129 | +class ContentObjectDataVideo(TypedDict, total=False): |
133 | 130 | type: Required[Literal["video"]] |
134 | 131 |
|
135 | 132 | url: Required[str] |
136 | 133 | """A public URL of the video content""" |
137 | 134 |
|
138 | 135 |
|
139 | | -class ContentContentNodeDataAudio(TypedDict, total=False): |
| 136 | +class ContentObjectDataAudio(TypedDict, total=False): |
140 | 137 | type: Required[Literal["audio"]] |
141 | 138 |
|
142 | 139 | url: Required[str] |
143 | 140 | """The URL of the audio content""" |
144 | 141 |
|
145 | 142 |
|
146 | | -ContentContentNodeData: TypeAlias = Union[ |
147 | | - ContentContentNodeDataText, ContentContentNodeDataImage, ContentContentNodeDataVideo, ContentContentNodeDataAudio |
| 143 | +ContentObjectData: TypeAlias = Union[ |
| 144 | + ContentObjectDataText, ContentObjectDataImage, ContentObjectDataVideo, ContentObjectDataAudio |
148 | 145 | ] |
149 | 146 |
|
150 | 147 |
|
151 | | -class ContentContentNode(TypedDict, total=False): |
152 | | - data: Required[Dict[str, ContentContentNodeData]] |
| 148 | +class ContentObject(TypedDict, total=False): |
| 149 | + data: Required[Dict[str, ContentObjectData]] |
153 | 150 | """Values in the object. Can be mixed content types.""" |
154 | 151 |
|
155 | 152 | type: Required[Literal["object"]] |
156 | 153 |
|
157 | 154 |
|
158 | | -Content: TypeAlias = Union[ContentText, ContentImage, ContentVideo, ContentAudio, ContentContentNode] |
| 155 | +Content: TypeAlias = Union[ContentText, ContentImage, ContentVideo, ContentAudio, ContentObject] |
159 | 156 |
|
160 | 157 |
|
161 | 158 | class PolicyToxicity(TypedDict, total=False): |
|
0 commit comments