kodexa 6.3.37316446505__py3-none-any.whl → 6.3.37331156649__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- kodexa/model/objects.py +2 -2
- kodexa/platform/client.py +39 -2
- {kodexa-6.3.37316446505.dist-info → kodexa-6.3.37331156649.dist-info}/METADATA +1 -1
- {kodexa-6.3.37316446505.dist-info → kodexa-6.3.37331156649.dist-info}/RECORD +6 -6
- {kodexa-6.3.37316446505.dist-info → kodexa-6.3.37331156649.dist-info}/LICENSE +0 -0
- {kodexa-6.3.37316446505.dist-info → kodexa-6.3.37331156649.dist-info}/WHEEL +0 -0
kodexa/model/objects.py
CHANGED
@@ -2458,7 +2458,7 @@ class Message(BaseModel):
|
|
2458
2458
|
assistant: Optional[Assistant] = None
|
2459
2459
|
user: Optional[User] = None
|
2460
2460
|
context: Optional[MessageContext] = None
|
2461
|
-
|
2461
|
+
force_to_sender: Optional[bool] = Field(None, alias="forceToSender")
|
2462
2462
|
|
2463
2463
|
class DataAttribute(BaseModel):
|
2464
2464
|
model_config = ConfigDict(
|
@@ -3381,7 +3381,7 @@ class MessageContext(BaseModel):
|
|
3381
3381
|
document_family_id: Optional[str] = Field(None, alias="documentFamilyId")
|
3382
3382
|
selected_node_uuids: Optional[List[str]] = Field(None, alias="selectedNodeUuids")
|
3383
3383
|
page: Optional[int] = None
|
3384
|
-
|
3384
|
+
message_template: Optional[MessageTemplate] = Field(None, alias="messageTemplate")
|
3385
3385
|
|
3386
3386
|
class MessageEvent(BaseModel):
|
3387
3387
|
model_config = ConfigDict(
|
kodexa/platform/client.py
CHANGED
@@ -2395,9 +2395,44 @@ class ProjectEndpoint(EntityEndpoint, Project):
|
|
2395
2395
|
return [ProjectTag.model_validate(tag) for tag in response.json()]
|
2396
2396
|
|
2397
2397
|
|
2398
|
-
class
|
2399
|
-
"""Represents a
|
2398
|
+
class MessagesEndpoint(EntitiesEndpoint):
|
2399
|
+
"""Represents a message endpoint"""
|
2400
|
+
|
2401
|
+
def get_type(self) -> str:
|
2402
|
+
"""
|
2403
|
+
Get the type of the endpoint.
|
2404
|
+
|
2405
|
+
Returns:
|
2406
|
+
str: The type of the endpoint, in this case "messages".
|
2407
|
+
"""
|
2408
|
+
return "messages"
|
2409
|
+
|
2410
|
+
def get_instance_class(self, object_dict=None):
|
2411
|
+
"""
|
2412
|
+
Get the instance class of the endpoint.
|
2413
|
+
|
2414
|
+
Args:
|
2415
|
+
object_dict (dict, optional): An optional dictionary object. Defaults to None.
|
2416
|
+
|
2417
|
+
Returns:
|
2418
|
+
MessageEndpoint: The instance class of the endpoint.
|
2419
|
+
"""
|
2420
|
+
return MessageEndpoint
|
2421
|
+
|
2422
|
+
def get_page_class(self, object_dict=None):
|
2423
|
+
"""
|
2424
|
+
Get the page class of the endpoint.
|
2400
2425
|
|
2426
|
+
Args:
|
2427
|
+
object_dict (dict, optional): An optional dictionary object. Defaults to None.
|
2428
|
+
|
2429
|
+
Returns:
|
2430
|
+
PageMessageEndpoint: The page class of the endpoint.
|
2431
|
+
"""
|
2432
|
+
return PageMessageEndpoint
|
2433
|
+
|
2434
|
+
|
2435
|
+
class ChannelsEndpoint(EntitiesEndpoint):
|
2401
2436
|
"""Represents a channels endpoint"""
|
2402
2437
|
|
2403
2438
|
def get_type(self) -> str:
|
@@ -5835,6 +5870,7 @@ class KodexaClient:
|
|
5835
5870
|
memberships (MembershipsEndpoint): An endpoint for memberships.
|
5836
5871
|
executions (ExecutionsEndpoint): An endpoint for executions.
|
5837
5872
|
channels (ChannelsEndpoint): An endpoint for channels.
|
5873
|
+
messages (MessagesEndpoint): An endpoint for messages.
|
5838
5874
|
"""
|
5839
5875
|
|
5840
5876
|
def __init__(self, url=None, access_token=None, profile=None, insecure=None):
|
@@ -5857,6 +5893,7 @@ class KodexaClient:
|
|
5857
5893
|
self.executions = ExecutionsEndpoint(self)
|
5858
5894
|
self.channels = ChannelsEndpoint(self)
|
5859
5895
|
self.assistants = AssistantsEndpoint(self)
|
5896
|
+
self.messages = MessagesEndpoint(self)
|
5860
5897
|
|
5861
5898
|
@staticmethod
|
5862
5899
|
def login(url, email, password, insecure=False):
|
@@ -6,12 +6,12 @@ kodexa/connectors/connectors.py,sha256=FpUZDkSyHld2b9eYRuVOWzaFtuGoaRuPXXicJB7TH
|
|
6
6
|
kodexa/model/__init__.py,sha256=rtLXYJBxB-rnukhslN9rlqoB3--1H3253HyHGbD_Gc8,796
|
7
7
|
kodexa/model/base.py,sha256=CaZK8nMhT1LdCpt4aLhebJGcorjq9qRID1FjnXnP14M,521
|
8
8
|
kodexa/model/model.py,sha256=GIHdQkFhE2xu8oLBgSXhZ_bvECcnS6_qrqwCtSbqnZI,114148
|
9
|
-
kodexa/model/objects.py,sha256=
|
9
|
+
kodexa/model/objects.py,sha256=QbqvzjeOd_Ef3V-K-542S26ZCzA-dxd1GNlQ1H7dURw,155674
|
10
10
|
kodexa/model/persistence.py,sha256=TajtXfHp7dL85R5ui9A2h6rLMecDUr6OYZHVgm8CVJw,57360
|
11
11
|
kodexa/pipeline/__init__.py,sha256=sA7f5D6qkdMrpp2xTIeefnrUBI6xxEEWostvxfX_1Cs,236
|
12
12
|
kodexa/pipeline/pipeline.py,sha256=cIRFOoJkguIYgNzx6FYrODdBpcY25CM_SULsqSsHeXE,24323
|
13
13
|
kodexa/platform/__init__.py,sha256=1O3oiWMg292NPL_NacKDnK1T3_R6cMorrPRue_9e-O4,216
|
14
|
-
kodexa/platform/client.py,sha256=
|
14
|
+
kodexa/platform/client.py,sha256=_ZHXYesXaZEWZ2vhxlSurx4KNdV6C4mSFy5oR2uE3SA,204828
|
15
15
|
kodexa/platform/kodexa.py,sha256=g9Vcp2CtPn6haCQLc7TEmQmROQ1x8Bdpxfx1iK1KTqU,32292
|
16
16
|
kodexa/selectors/__init__.py,sha256=xA9-4vpyaAZWPSk3bh2kvDLkdv6XEmm7PjFbpziiTIk,100
|
17
17
|
kodexa/selectors/ast.py,sha256=gG-1st841IntgBE5V7p3Cq9azaym2jV5lB_AIywQTCI,13269
|
@@ -34,7 +34,7 @@ kodexa/testing/test_components.py,sha256=4BnzCCOA5v__82mB1TIBPHfNIGJbkZz9PiTZiNK
|
|
34
34
|
kodexa/testing/test_utils.py,sha256=IWLKBvMHATzrsoO9PQFGcwoGcuZykhAS3QRddfzb_XE,14043
|
35
35
|
kodexa/training/__init__.py,sha256=xs2L62YpRkIRfslQwtQZ5Yxjhm7sLzX2TrVX6EuBnZQ,52
|
36
36
|
kodexa/training/train_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
37
|
-
kodexa-6.3.
|
38
|
-
kodexa-6.3.
|
39
|
-
kodexa-6.3.
|
40
|
-
kodexa-6.3.
|
37
|
+
kodexa-6.3.37331156649.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
38
|
+
kodexa-6.3.37331156649.dist-info/METADATA,sha256=uc68lbmDUPTvhbkzPYOJ4gySItXVEuxoLUPty13ZH7s,4003
|
39
|
+
kodexa-6.3.37331156649.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
40
|
+
kodexa-6.3.37331156649.dist-info/RECORD,,
|
File without changes
|
File without changes
|