forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodels.py
More file actions
27 lines (21 loc) · 767 Bytes
/
Copy pathmodels.py
File metadata and controls
27 lines (21 loc) · 767 Bytes
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
from pydantic import BaseModel, Field
from datetime import datetime
from typing import Optional
from models import ExternalIntegrationConversationSource, Geolocation
class ZapierSubcribeModel(BaseModel):
target_url: str = Field(description="Target url is the url for web hook calling", default='')
class ZapierCreateConversation(BaseModel):
icon: dict
title: str
speakers: int
category: str
duration: int
overview: str
transcript: str
class ZapierActionCreateConversation(BaseModel):
text: str
source: ExternalIntegrationConversationSource # text_source
started_at: Optional[datetime] = None
finished_at: Optional[datetime] = None
language: Optional[str] = None
geolocation: Optional[Geolocation] = None